HJJ - Editorial

PROBLEM LINK:

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

Author: maximus11
Tester: kingmessi
Editorialist: iceknight1093

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

In your gym routine, you start by lifting X kilograms, and then increase the weight by 10 every set.
How much will you lift on the third set?

EXPLANATION:

Since each set results in an increase of 10, on the third set you will lift X + 10 + 10 = X + 20 kilograms.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (PyPy3)
x = int(input())
print(x + 20)