Number Game
CodeChefOpen on judge ↗
Chef has his birthday today. So many of his friend are surprising him with worderful gifts and surprizes. One of his friends gifted him three numbers $A$, $B$ and $C$. Chef is very much interested in knowing that whether it is wonderful or not. Gift will be wonderful if $A$ is divisible by either $B$ or $C$ or both. ###Input: - First line will contain $T$, number of testcases. Then the testcases
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