← All problemsSign in

Voldemort & his army

Voldemort has been assembling his army of dark wizards to gain control of the wizarding world.Lucius Malfoy,one of his most entrusted follower,has presented Voldemort with a list of n dark wizards,each having certain magical power,p. Now Voldemort has decided to attack m places.For ith fight,he has decided to take all wizards from the list between li & ri indices(both included).His army's effecti

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