| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63515 | emoj | [在线测评解答教程] 闰年 | C++ | Accepted | 2 MS | 272 KB | 544 | 2024-01-10 17:54:59 |
#include <iostream> using namespace std; int main() { // A+B problem // int a,b; // cin>>a>>b; // cout<<a+b<<endl; // 求和 // int n,sum = 0; // while(cin >> n) // { // sum = n * (n+1) / 2; // cout<<sum<<endl; // } // 闰年 int t,n; cin>>t; while (t) { cin>>n; if((n % 100 !=0 && n % 4 == 0) || n % 400 == 0) { cout<<"Yes"<<endl; }else { cout<<"No"<<endl; } t--; } return 0; }