Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98805 贾雨泽 08有几个闰年 C++ Wrong Answer 0 MS 268 KB 350 2024-11-23 14:54:42

Tests(2/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,x,y,z; cin>>a>>b>>c; if(a%4==0&&a%100!=0||a%400==0){ x = 1; } else{ x = 0; } if(a%4==0&&a%100!=0||a%400==0){ y = 1; } else{ y = 0; } if(a%4==0&&a%100!=0||a%400==0){ z = 1; } else{ z = 0; } cout<<x+y+z; }


Run Info:

------Input------
3637 2104 2522
------Answer-----
1
------Your output-----
0