← All problemsSign in

CHEF AND GAME

Chef started playing a Game called BGMI-Team Death Match, in the game $4$ players of a team compete with rival team which also consists of 4 members. chef wants to know his position in his team's leaderboard. Chef knows his present score and total score of his team at that instant, chef is at $TOP$ of leader board if and only if he has a score at least 50% of team's score . Chef ranks himself as

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