← All problemsSign in

Target Sum

Cosimo is playing a video game in which he would be provided with different types of attacks. In general, the attacks are used to defeat the villain. Now that the villain is frozen because of the IceBomb , cosimo has a chance to defeat the villain by using those attacks. each attack has a power to it when the villian recieves an attack, his health decreases by the corresponding attack's power Ke

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