Chef and Apples
CodeChefOpen on judge ↗
Chef has N boxes with him and he has K friends. Each box has 500 apples. He was wondering if he could distribute the apples equally among his friends. PRINT "yes"(without double quotes) if he can and "no" if he cannot. INPUT: First line contains an integer T denoting the number of test cases. Each test case contains two integers N and K denoting the number of boxes and number of friends resp
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.
Sign in to chat with the tutor and save your progress.
Sign in to start