Mission Impossible
CodeChefOpen on judge ↗
You are sending Tom Cruise on a secret mission to Switzerland. You are in search of secret packages scattered around $N$ mountain ranges. Each mountain range has 5 mountains and the highest peak of each mountain range contains a package each. Unfortunately, Tom already left for Switzerland and you need to tell him how to get to the packages. Since the message can get intercepted in transmission
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