| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 24396 | 王皓暄 | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 256 KB | 361 | 2023-08-11 17:47:07 |
#include<bits/stdc++.h> using namespace std; int main() { int t,n; scanf("%d",&t); while(t--) { scanf("%d",&n); if(n%100==0) { if(n%400==0) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } } else if(n%4==0) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } } return 0; }