# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
22060 | 2017-04-29T06:42:17 Z | 연습 세션과 본 대회의 등록은 왜 따로일까(#1013, gs13105) | 시간과 날짜 (KRIII5P_1) | C++14 | 3 ms | 1116 KB |
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> using namespace std; int main() { int x, y, t, i; scanf("%d", &t); for(i = 0; i<t; i++) { scanf("%d%d", &x, &y); printf(0<=x&&x<=23 && 0<=y&&y<=59 ? "YES " : "NO "); if(x == 1 ||x == 3 ||x == 5 ||x == 7 ||x == 8 ||x == 10 ||x == 12) printf(1<=y&&y<=31 ? "YES " : "NO "); else if(x == 4 ||x == 6 ||x == 9 ||x == 11) printf(1<=y&&y<=30 ? "YES " : "NO "); else if(x == 2) printf(1<=y&&y<=29 ? "YES " : "NO "); else printf("NO"); printf("\n"); } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 1116 KB | Output isn't correct |