PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: iceknight1093
Tester: sushil2006
Editorialist: iceknight1093
DIFFICULTY:
Cakewalk
PREREQUISITES:
None
PROBLEM:
Your car has X units of fuel, and has an efficiency of Y kilometers per liter.
Can you make a journey of 100 kilometers?
EXPLANATION:
Each unit of fuel allows us to travel Y kilometers.
So, X units of fuel will allow us to travel for X\cdot Y kilometers.
We need to travel 100 kilometers.
Thus, the answer is Yes if X\cdot Y \gt 100 and No otherwise.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (PyPy3)
x, y = map(int, input().split())
print('Yes' if x*y >= 100 else 'No')