Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5410 | 谢锦卓 | 08判断是否为闰年 | C++ | Wrong Answer | 0 MS | 264 KB | 276 | 2024-11-16 09:15:39 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int year; cin>>year; cout<<year<<" "; if(year%100==0,year%400==0,year%4==0){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }
------Input------
2100
------Answer-----
2100 No
------Your output-----
2100 Yes