WAPEN - Editorial

PROBLEM LINK:

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

Author: iceknight1093
Editorialist: iceknight1093

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

You solved a problem X minutes after the start of the contest, with Y wrong submissions.
Each wrong submission incurs an 10 minute penalty.
What’s your total time penalty?

EXPLANATION:

Since each wrong submission adds 10 minutes to the total penalty, Y wrong submissions adds 10\times Y minutes to the penalty.
So, the overall penalty equals

X + 10\times Y

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (PyPy3)
x, y = map(int, input().split())
print(x + 10*y)