← All problemsSign in

Bear the Punishment

Problem description. An Indian sage was doing his prayer with complete focus. A group of children was playing cricket near the sage's hut. The ball entered the sage's hut accidentally by a great shot. The sage's prayer was interrupted by this which made him angry. As the group of children entered his hut to get the ball his anger was faded away but he decided to teach them a lesson. In order

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