# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
74447 |
2018-09-02T03:04:37 Z |
TAMREF |
None (KRIII5P_1) |
Python 3 |
|
115 ms |
3368 KB |
date = [-1,31,29,31,30,31,30,31,31,30,31,30,31]
for _ in range(int(input())):
x, y = list(map(int,input().split(' ')))
print('Yes' if 0 <= x and x <= 23 and 0 <= y and y <= 59 else 'No',end = ' ')
print('Yes' if 1 <= x and x <= 12 and 1 <= y and y <= date[x] else 'No')
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
115 ms |
3368 KB |
Output is correct |