← All problemsSign in

Olympics 2024

CodeChefRating 283Open on judge ↗

Athletes of Chefland have won $G$ gold medals, $S$ silver medals, and $B$ bronze medals in the Paris Olympics. Chef will be happy only if the Chefland team wins $5$ medals of each type. Find the total number of additional medals the team needs to win to make Chef happy. ### Input - The first and only line of input will contain three space-separated integers $G, S,$ and $B$ — the number of gold,

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