Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5639 | 李成蹊 | [在线测评解答教程] 闰年 | C++ | 通过 | 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; }