# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22192 | 느그팀 (#42) | 시간과 날짜 (KRIII5P_1) | C++98 | 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<cstdio>
int w[13]={-1,31,29,31,30,31,30,31,31,30,31,30,31};
int main(){
int a, b, TC;
scanf("%d",&TC);
while(TC--){
scanf("%d%d",&a,&b);
if(a>=24 || b>=60)printf("No ");
else printf("Yes ");
if(a>=13 || w[a]<b || b==0)printf("No\n");
else printf("Yes\n");
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |