# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
22034 |
2017-04-29T03:20:03 Z |
현재PC방은도타2가점령!!(#1002, exqt) |
None (KRIII5P_1) |
C++ |
|
16 ms |
2020 KB |
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int T; cin >> T;
int days[] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
while(T--)
{
int x, y; cin >> x >> y;
if(0<=x && x<24 && 0<=y && y<60) cout << "Yes "; else cout << "No ";
if(1<=x && x<=12 && 1<=y && y<=days[x]) cout << "Yes\n"; else cout << "No\n";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
16 ms |
2020 KB |
Output is correct |