# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22034 | 현재PC방은도타2가점령!! (#42) | 시간과 날짜 (KRIII5P_1) | C++98 | 16 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.
#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 |
---|---|---|---|---|
Fetching results... |