PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: notsoloud
Testers: iceknight1093, rivalq
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
Jerry is running away from Tom at X metres per second; while Tom is chasing at Y metres oer second.
Will Tom catch Jerry eventually?
EXPLANATION:
As long as Tom is strictly faster than Jerry, Jerry will eventually be caught.
So, the answer is Yes
if X \lt Y and No
otherwise; which can be checked using if
conditions.
TIME COMPLEXITY
\mathcal{O}(1) per test case.
CODE:
Editorialist's code (Python)
for _ in range(int(input())):
x, y = map(int, input().split())
print('Yes' if x < y else 'No')