CHRISTGREET - Editorial

PROBLEM LINK:

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

Author: notsoloud
Tester: yash_daga
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Given a date in December, check whether it’s Christmas.

EXPLANATION:

Do what’s asked of you: if X = 25, print "Christmas", otherwise print "Ordinary".
This check can be done using an if condition.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (Python)
x = int(input())
print('Christmas' if x == 25 else 'Ordinary')