Label Them
CodeChefOpen on judge ↗
John has arranged N boxes in such a way that it forms a circle. Now he wants to label these boxes with positive integers less than 109. He also loves the number 7, so he decided to label the boxes in a pecular fashion. - Each of the 7 remainders (i.e 0, 1, 2, 3, 4, 5 and 6) should occur atleast once, after dividing all the N integers on the label of the boxes by 7. - Any four boxes lying se
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