PPT - Editorial

PROBLEM LINK:

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

Author: raysh07
Tester: sushil2006
Editorialist: iceknight1093

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

It takes 30 seconds to cover one slide of a presentation.
Chef has N slides made, how many more does he need to make to have the presentation length be 600 seconds in total?

EXPLANATION:

At 30 seconds per slide, a total of \frac{600}{30} = 20 slides are needed to reach 600 seconds.

So, if N slides are already ready, 20 - N more are needed.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (PyPy3)
n = int(input())
print(20 - n)

I did the exact same code, i hope i dont get plagarised