The Riddler
CodeChefOpen on judge ↗
The Riddler has a simple question for you. You have to tell him the count of numbers between A and B (A)which are divisible by M. For every test case , print the answer in a new line. Input The first line contains an integer T, total number of testcases. Then follow T lines, each line contains A, B and M respectively as described above. Output For every test case print the answer in a new lin
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