Divisibility Test
CodeChefOpen on judge ↗
You are given a number $N$. If the number is divisible by 5, 15, and 75 print 3 else if it is divisible by any two print 2 else if it is divisible by any one print 1 and if it's not divisible by anyone print 0. ###Input: - The first line contains the number of test cases $T$ followed by $N$ for each test case ###Output: - Print 1, 2, or 3 in the new line. ###Constraints - $1 \le
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