← All problemsSign in

Kill Your Enemy

You are Playing PUBG. You have faced one enemy whose Health is $H$. You have $n$ powers $a_1,a_2,a_3,\dots , a_n$. If you use $i$ th power than your enemy's health will decrease by factor of $a_i$. You can only use $i$th power if enemy's Health is divisible by $a_i$. Print the minimum health Enemy can have after you use atmost $1$ power. Note : It is possible that you will not be able t

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