← All problemsSign in

SERIES

Max is a very mischievous kid and so he gets punished by his math teacher.He feels guilty for his wrongdoing,so he decides to behave well and also impress his teacher to rebuild his image in front of his teacher so he goes to her to apologize but the teacher is not present on her table,he sees a paper on her table which is a problem and thinks if he is able to solve this problem,his teacher will b

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start