# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22200 | 새벽 2시 22분 (#42) | 시간과 날짜 (KRIII5P_1) | C++14 | 3 ms | 1116 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.
#include<stdio.h>
int t,x,y,d[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};
int main() {
scanf("%d",&t);
while(t--) {
scanf("%d%d",&x,&y);
printf("%s ", 0<=x && x<=23 && 0<=y && y<=59 ? "Yes" : "No");
puts(1<=x && x<=12 && 1<=y && y<=d[x] ? "Yes" : "No");
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |