New Game
CodeChefOpen on judge ↗
Arpit and Kapil are playing an online multiplayer game. Anyone will win if he manages to defeat the other player and by entering the opponent area capture the flag located at the center and return to his own area without being killed. Kapil sneaks in Arpit's area and manages to capture the flag. Now it's Arpit's turn to stop Kapil from exiting by closing the streets of his area. Closing
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