THE CHALLENGE
CodeChefOpen on judge ↗
The rescue team finally has found the terrorists. But the terrorists have given a challenge to the rescue team which when solved, the terrorists will release the hostages and leave the village. The challenge is as follows, There are n boxes containing 109 Rupees each. Now the terrorists will pass a few queries which need to be executed as per their order. A query ‘1’ will order the rescue team to
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