Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1483 | 张宸瑜 | 08有几个闰年 | C++ | Accepted | 0 MS | 264 KB | 377 | 2023-09-30 18:15:43 |
# 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(b%100==0&&b%400==0||b%100!=0&&b%4==0){ z=z+1; } if(c%100==0&&c%400==0||c%100!=0&&c%4==0){ z=z+1; } cout<<z; return 0; }