WHOMAKESP1 - Editorial

PROBLEM LINK:

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

Author: apoorv_me
Tester: apoorv_me
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

Dom asks Tyro to make the first problem of a contest upto B times.
Tyro will only be convinced and make the problem after the A-th time he’s asked; otherwise Dom will have to do it.
Given A and B, who will make the problem?

EXPLANATION:

Tyro will be convinced after the A-th time, and Dom will ask B times.

So, if A \leq B, Tyro will be convinced and make the problem; otherwise Dom will have to do it.
Thus, the answer is Tyro if A\leq B and Dom otherwise.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (Python)
a, b = map(int, input().split())
if b >= a: print('Tyro')
else: print('Dom')