← All problemsSign in

Alex and his Army

Problem Description Alex from mars is planning to attack the Earth. He has created his army with some divisions. Each division is headed by a leader. Each division has some soldiers. When the leaders went to Alex to show the army formation, he was unhappy with the number of soldiers in each division. He then decided to increase or decrease the count of soldiers in each division. "m" represents

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