# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22122 | 2017-04-29T10:35:13 Z | SCIK(#1022, SCIK) | None (KRIII5P_1) | C++14 | 3 ms | 1116 KB |
// // main.cpp // r // // Created by 수익 조 on 2017. 4. 29.. // Copyright © 2017년 수익 조. All rights reserved. // #include <stdio.h> int main(void) { int testcase; scanf("%d", &testcase); for(int t = 1; t <= testcase; t++) { int x,y; scanf("%d %d", &x, &y); if(x < 24 && y < 60) printf("YES "); else printf("NO "); if(x == 1 || x == 3 || x == 5 || x == 7|| x == 8 || x == 10 || x == 12) { if(y >= 1 && y <= 31) printf("YES\n"); } else if( x == 4 || x == 6 || x == 9 || x == 11) { if(y >= 1 && y <= 30) printf("YES\n"); } else if(x == 2) { if( y >= 1 && y <= 29) printf("YES\n"); } else printf("NO\n"); } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1116 KB | Unexpected end of file - token expected |