Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111222 | 向睿杰 | 08判断是否为闰年 | C++ | Wrong Answer | 1 MS | 268 KB | 483 | 2025-03-01 11:02:47 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int year; cin>>year; if(year%400==0) cout<<year<<" "<<" Yes"<<endl; else { if(year%4==0) { if(year%100!=0) cout<<year<<" "<<"Yes"<<endl; else cout<<year<<" "<<'No'<<endl; } else cout<<year<<" "<<'No'<<endl; } return 0; }
------Input------
2100
------Answer-----
2100 No
------Your output-----
2100 20079