← All problemsSign in

Olympics Ranking

CodeChefRating 893Open on judge ↗

In Olympics, the countries are ranked by the **total number of medals won**. You are given six integers $G_1$, $S_1$, $B_1$, and $G_2$, $S_2$, $B_2$, the number of gold, silver and bronze medals won by two different countries respectively. Determine which country is ranked better on the leaderboard. It is guaranteed that there will not be a tie between the two countries. ### Input - The first li

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