← All problemsSign in

RPG Hero Ram!

Ram was bored because he couldn't play basketball in quarantine! So he asked his aniki Pritish to suggest him something to get rid of the boredom. Pritish suggested him to play YAJRPG(Yet Another Japanese Role Playing Game)! So Ram started playing the game and assembled a party of $N$ members (numbered from 1 to $N$)! Ram reached the end-game and had to face the Final Boss and his $M$ minions! **

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