Submission #74447

#TimeUsernameProblemLanguageResultExecution timeMemory
74447TAMREF시간과 날짜 (KRIII5P_1)Cpython 3
7 / 7
115 ms3368 KiB
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 timeMemoryGrader output
Fetching results...