# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22148 | _(:3」∠)_ (#42) | 시간과 날짜 (KRIII5P_1) | C++11 | 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 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 (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |