NEWYEAR - Editorial

PROBLEM LINK:

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

Author:
Tester: sushil2006
Editorialist: iceknight1093

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

It is now \text{X:00} on the 31-st of December.
How many hours is it till midnight?

EXPLANATION:

There are 24 hours in a day, so there are 24 - X hours left till midnight.
Simply print 24 - X.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (PyPy3)
x = int(input())
print(24 - x)