Codechef•Apr 15, 2025
Janmansh and Assignments
Hazrat Ali
Codechef
Janmansh has to submit 33 assignments for Chingari before 1010 pm and he starts to do the assignments at XX pm. Each assignment takes him 11 hour to complete. Can you tell whether he'll be able to complete all assignments on time or not?
Input Format
- The first line will contain TT - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains one integer XX - the time when Janmansh starts doing the assignments.
Output Format
For each test case, output Yes
if he can complete the assignments on time. Otherwise, output No
.
You may print each character of Yes
and No
in uppercase or lowercase (for example, yes
, yEs
, YES
will be considered identical).
Constraints
- 1≤T≤10
- 1≤X≤9
Sample 1:
Input
2 7 9
Output
Yes No
Solution
for _ in range(int(input())):
p = int(input())
if p<=10-3:
print("YES")
else:
print("No")