Codechef•Sep 27, 2025
Ezio and Guards
Hazrat Ali
Codechef
Given that there are Y number of guards, predict if he can safely manipulate all of them.
Input Format
- First line will contain T, number of test cases. Then the test cases follow.
- Each test case contains of a single line of input, two integers X and Y.
Output Format
For each test case, print YES if it is possible for Ezio to manipulate all the guards. Otherwise, print NO.
You may print each character of the string in uppercase or lowercase (for example, the strings YeS, yEs, yes and YES will all be treated as identical).
Constraints
- 1≤T≤100
- 1≤X,Y≤100
Sample 1:
Input
3 5 7 6 6 9 1
Output
NO YES YES
Solution
t = int(input())
for _ in range(t):
x, y = map(int, input().split())
if x >= y:
print("YES")
else:
print("NO")