← All problemsSign in

Grumpy Granny

CodeChefRating 2450Open on judge ↗

After the death of their mother, Alphonse and Edward now live with Pinako and Winry. Pinako is worried about their obsession with Alchemy, and that they don't give attention to their studies. So to improve their mathematical solving ability, every day she gives a mathematical problem to solve. They can go out to practice Alchemy only after they have solved the problem. Help them by so

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