Strange Race
CodeChefOpen on judge ↗
Today is the Annual Sports meet in NIT Hamirpur and all the students have come to see the much awaited 4X400m race. The athletes are lined up in a row from 1 to N, and each one having a chest number, Ai equal to their height. Coach Jamalta is very keen about knowing the order in which the athletes are standing and he has the power to remove anyone he wants from that line. Before the race starts he
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