Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
5639 | 李成蹊 | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 248 KB | 358 | 2023-01-17 08:42:19 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n;i++){ int yi; cin>>yi; if(yi%4==0){ if(yi%100==0){ if(yi%400==0){ cout<<"Yes"; } else{ cout<<"No"; } } else{ cout<<"Yes"; } } else{ cout<<"No"; } cout<<endl; } return 0; }