Dead or Alive
CodeChefOpen on judge ↗
Shikamaru is playing a video game. In the game he has to defeat a monster whose health is $M$. He is provided with an initial health of $N$ and he can defeat a monster if the health of the monster is a multiple of his health otherwise he loses. Determine if Shikamaru can win. ###Input: - First line contains $T$ number of testcases. - Each testcase contains a single line of input, two in
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