# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22135 | 연습대회 팀 네임은 수정할 수 있을까? (#42) | 시간과 날짜 (KRIII5P_1) | C++14 | 0 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 <stdio.h>
#include <algorithm>
#include <vector>
#include <functional>
#include <set>
#include <map>
#include <queue>
#include <tuple>
#include <string.h>
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
typedef long long ll;
int day[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int main() {
int TC; scanf("%d", &TC);
while(TC--) {
int x, y; scanf("%d%d", &x, &y);
if(x >= 0 && x <= 23 && y >= 0 && y <= 59) printf("Yes "); else printf("No ");
if(x >= 1 && x <= 12 && day[x] >= y && y >= 1) printf("Yes\n"); else printf("No\n");
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |