Submission #22178

# Submission time Handle Problem Language Result Execution time Memory
22178 2017-04-29T14:35:23 Z sdfgsfg(#1031, zzze17) None (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;
	}
}
# Verdict Execution time Memory Grader output
1 Partially correct 26 ms 2020 KB Output is partially correct