← All problemsSign in

Equal Share

Given N number of people coming to the ceremony and M is the total no of gifts available Chef want to give equal no of gifts to the guest. Help chef to find out if the gifts can be equally divided among the guest. Input First line contain integer T (No. of test cases). Second line contain integer N and M . Output Output "Yes" if the gifts can be divided equally otherwise output "No". Cons

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start