Codechef•Aug 05, 2025
Right There
Hazrat Ali
Codechef
If you wanna party, if you, if you wanna party
Then put your hands up
Chef wants to host a party with a total of N people.
However, the party hall has a capacity of X people. Find whether Chef can host the party.
Input Format
- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of two space-separated integers N and X — the total number of people and the capacity of the party hall.
Output Format
For each test case, output on a new line, YES, if Chef can host the party and NO otherwise.
Each character of the output may be printed in either uppercase or lowercase. That is, the strings NO, no, nO, and No will be treated as equivalent.
Constraints
- 1≤T≤100
- 1≤N,X≤10
Sample 1:
Input
4 2 5 4 3 6 6 10 9
Output
YES NO YES NO
Solution
t = int(input())
for _ in range(t):
n, x = map(int, input().split())
if n <= x:
print("YES")
else:
print("NO")