Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
15543 | 马德理666 | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 252 KB | 250 | 2023-04-23 22:15:59 |
#include<bits/stdc++.h> using namespace std; int main() { int n,t; cin>>t; for(int i=0;i<t;i++){ cin>>n; if(n%4==0&n%100!=0||n%400==0){ cout<<"Yes"<<endl; } else cout<<"No"<<endl; } return 0; }