Modulo
CodeChefOpen on judge ↗
Given two integers 'A' and 'B', A MOD B is the remainder of the operation A / B. For example, 7 MOD 3 = 1 14 MOD 3 = 2 27 MOD 3 = 0 38 MOD 3 = 2 Your program should accept 10 non-negative integers as input and output the number of distinct non-negative integers in the input, if they are considered MOD 42. Input The input has 10 test cases. Each Test Case contains 10 non-negative integers,
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