The Secret Mission
CodeChefOpen on judge ↗
Rick is busy working on inventing a new gadget as always. Now, Morty wants him to take a break from his work and accompany him for a secret mission to Dimension 35-C. Rick is in a dilemma as he doesn’t want to leave his work incomplete and also doesn’t want Morty to go on the mission alone. Therefore, he plays a small trick by agreeing to accompany him on a condition wherein he gives a problem 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