At the V-Gate
CodeChefOpen on judge ↗
Ranjith comes back to insti at 1:00 am after a lot of fun at Diff 42 resto lounge. The security guard doubts him and doesn't let him pass. Since the guard is bored, he plays the shell game with Ranjith and he promises to allow him in if he wins the game. The game is as follows: There are 3 cups and one of them contains a ball. Now the guard calls the swapping of two cups as an operation and perfor
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