Gamer Zikara
CodeChefOpen on judge ↗
Zikara is a gamer and is representing her branch in Technical Aakriti. In the game there are n terrorists in a building, each terrorist has an attack value of a[i] (fighting with the terrorist decreases the health point of Zikara by a[i]), each time she defeats a terrorist, she can use the terrorist’s health potion which gives her health[i] health points. You being her branch mate need to tell her
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.
Sign in to chat with the tutor and save your progress.
Sign in to start