Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5500 | 谢锦卓 | 08有几个闰年 | C++ | Wrong Answer | 0 MS | 252 KB | 469 | 2024-11-18 13:29:43 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a%100==0,a%4==0){ cout<<"a=1"<<endl; } else{ cout<<"a=0"<<endl; } if(b%100==0,b%4==0){ cout<<"b=1"<<endl; } else{ cout<<"b=0"<<endl; } if(c%100==0,c%4==0){ cout<<"c=1"<<endl; } else{ cout<<"c=0"<<endl; } cout<<a+b+c<<endl; return 0; }
------Input------
3789 3161 3511
------Answer-----
0
------Your output-----
a=0 b=0 c=0 10461