PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: notsoloud
Tester & Editorialist: iceknight1093
DIFFICULTY:
299
PREREQUISITES:
None
PROBLEM:
Chef wants to host N people for a party, but the party hall has a capacity of X people.
Can Chef host the party?
EXPLANATION:
For everyone to fit within the hall’s capacity, N \leq X must hold.
So, the answer is Yes
if N \leq X and No
otherwise.
TIME COMPLEXITY
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
for _ in range(int(input())):
n, x = map(int, input().split())
print('Yes' if n <= x else 'No')