답안 #22178

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
22178 2017-04-29T14:35:23 Z sdfgsfg(#1031, zzze17) 시간과 날짜 (KRIII5P_1) C++11
2 / 7
26 ms 2020 KB
#include <iostream>
using namespace std;

int main()
{
	int c;
	cin >> c;

	while (c--)
	{
		int x, y;
		cin >> x >> y;
		if ((x >= 0 && x <= 23) && (y >= 0 && y <= 59))
			cout << "Yes";
		else
			cout << "No";

		if ((x >= 1 && x <= 12) && (y >= 1 && y <= 31))
			cout << " Yes";
		else
			cout << " No";

		cout << endl;
	}
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 26 ms 2020 KB Output is partially correct