Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1478 | 张宸瑜 | 08有几个闰年 | C++ | Wrong Answer | 0 MS | 268 KB | 377 | 2023-09-30 18:12:21 |
# include<iostream> # include<cstdio> #include<iomanip> using namespace std; int main(){ int a,b,c,z=0; cin>>a>>b>>c; if(a%100==0&&a%400==0||a%100!=0&&a%4==0){ z=z+1; } if(a%100==0&&a%400==0||a%100!=0&&a%4==0){ z=z+1; } if(a%100==0&&a%400==0||a%100!=0&&a%4==0){ z=z+1; } cout<<z; return 0; }
------Input------
2745 3218 3660
------Answer-----
1
------Your output-----
0