PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: mexomerf
Tester: yash_daga
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
N students in a school sit on a bus with M seats. It is known that N \leq M.
Chef is happy if the bus is not full.
Will Chef be happy?
EXPLANATION:
The bus is full only when N = M.
So, the answer is No
if N = M and Yes
otherwise.
This can be checked using an if
statement.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (Python)
n, m = map(int, input().split())
print('Yes' if n < m else 'No')