← All problemsSign in

Podium Finish

CodeChefRating 341Open on judge ↗

Chef got his dream seat in `F1` and secured a $3^{rd}$ place in his debut race. He now wants to know the time gap between him and the winner of the race. You are his chief engineer and you only know the time gap between Chef and the runner up of the race, given as $A$ seconds, and the time gap between the runner up and the winner of the race, given as $B$ seconds. Please calculate and inform Ch

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