← All problemsSign in

PUBG

In the game of PUBG, there are two friends in the same team, PUBG developers introduced a new health boost kit. Team has only single health boost kit . Initially, first and second player's health is p and q respectively . You can use health kit only after completion of a minute. In a single minute, player's health either decreases by 2 percent (if not using health kit) or boosts up by 1 percent (

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