# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
22148 | 2017-04-29T12:29:32 Z | _(:3」∠)_(#1025, xdoju) | 시간과 날짜 (KRIII5P_1) | C++11 | 3 ms | 1116 KB |
#include <cstdio> int days[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int main(){ int T; scanf("%d", &T); for(; T--; ){ int x, y; scanf("%d%d", &x, &y); printf("%s ", x >= 0 && x <= 23 && y >= 0 && y <= 59 ? "Yes" : "No"); printf("%s\n", x >= 1 && x <= 12 && y >= 1 && y <= days[x] ? "Yes" : "No"); } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 1116 KB | Output is correct |