Pro Gamer
CodeChefOpen on judge ↗
Dr. Brief recently designed a new video game. His game has $2000000000000001$ Islands numbered from $-10^{15}$ to $10^{15}$ located sequentially. Between every two Islands is an infinitely long river, and there is no bridge between two Islands. (There are dead ends before and after Islands numbered $-10^{15}$ and $10^{15}$ respectively.) The game has $N$ players, initially present on random isla
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