TCG - Editorial

PROBLEM LINK:

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

Author: notsoloud
Testers: apoorv_me, tabr
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Given the old and new capital gain tax values (X% and Y%), decide whether it increased, decreased, or remained the same.

EXPLANATION:

The tax increased if X\lt Y, decreased if X\gt Y, and remained the same if X=Y.
Use if conditions to check these and print the answer appropriately.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (Python)
x, y = map(int, input().split())
print('INCREASED' if x < y else ('DECREASED' if x > y else 'SAME'))