Fastest runner first
CodeChefOpen on judge ↗
There are three players in the race. We are observing the race after every second (i.e. At second $0,1,2,3...$). At $0^{th}$ second, the score of all players are $1$. And no two players are at same position at the same time. After every second, the last player among them overtakes other two players. The score of that player after overtaking will be increased by double the score of player 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