# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
74447 | TAMREF | 시간과 날짜 (KRIII5P_1) | Cpython 3 | 115 ms | 3368 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 |
---|---|---|---|---|
Fetching results... |