MCL PHASE 1 CHALLENGE 204
CodeChefOpen on judge ↗
Five friends are playing catchme if you can. It was decided that the catcher will be the one on whom the no lands, this number is given as input. The counting is from left to right and again back to left and so on. Find the catcher assuming the names are jack, buck, john, chris and roshan (from 1 to 5 respectively)? ###Input: 1st line is an integer which gives the number ###Output:
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