Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92383 | 123456789asd | [在线测评解答教程] 闰年 | C++ | Wrong Answer | 1 MS | 272 KB | 263 | 2024-10-02 11:32:41 |
#include <bits/stdc++.h> using namespace std; int main(){ int t,n,a=0,b=0; cin>>t; while(cin>>n){ if((n%100!=0&&n%4==0)||n%400==0) b=b+1; else a=a+1; if(a==1) cout<<"no"<<endl; if(b==1) cout<<"yes"<<endl; a=0; b=0; } return 0; }
------Input------
2 2023 3059
------Answer-----
No No
------Your output-----
no no