Do Not Cheat
CodeChefOpen on judge ↗
There are $N$ students who finally reach to the final round of Code-Runner. One student among them is having solution of all the questions, now he will pass this solution set to any one student, then that other student who received solution will pass it to other and so on. Help the team of Code Runner to detect how many students would have seen the solution till the end and which student will be
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