| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 22055 | 아재 goto 써요? (#42) | 시간과 날짜 (KRIII5P_1) | C++14 | 3 ms | 2020 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.
// =====================================================================================
// 
//       Filename:  td.cpp
//        Created:  2017년 04월 29일 15시 12분 11초
//       Compiler:  g++ -O2 -std=c++14
//         Author:  baactree ,  bsj0206@naver.com
//        Company:  Chonnam National University
// 
// =====================================================================================
#include <bits/stdc++.h>
using namespace std;
int m[13]={0, 32, 30, 32, 31, 32, 31, 32, 32, 31, 32, 31, 32};
int main(){
	int TestCase;
	scanf("%d", &TestCase);
	while(TestCase--){
		int x, y;
		scanf("%d%d", &x, &y);
		if(x>=0&&x<24&&y>=0&&y<60)
			printf("Yes ");
		else
			printf("No ");
		if(x>=0&&x<12&&y>=0&&y<m[x])
			printf("Yes\n");
		else
			printf("No\n");
	}
	return 0;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
