PODIUM - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: Tejas Pandey
Tester: Harris Leung
Editorialist: Nishank Suresh

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Given the time gap between first and second place A, and the gap between second and third place B in a race, find the gap between first and third place.

EXPLANATION:

The gap between first and third equals the gap between first and second, plus the gap between second and third.

So, the answer is simply A + B.

TIME COMPLEXITY

\mathcal{O}(1) per test case.

CODE:

Editorialist's code (Python)
for _ in range(int(input())):
    a, b = map(int, input().split())
    print(a+b)