← All problemsSign in

Shil and Rasenshuriken

Naruto recently learnt a new technique Rasenshuriken. To enhance the power of the new technique, he created N shadow clones of himself. The ith clone had power Ai. Now Naruto will choose any 2 of the clones. The power of Rasenshuriken thus produced will be the product of the powers of the clones chosen. But he is going to fight a very strange enemy named Pain. He will be able to defeat Pain if th

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