Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119583 | 周泽洋 | 08判断是否为闰年 | C++ | Wrong Answer | 0 MS | 268 KB | 268 | 2025-05-17 19:14:59 |
#include<iostream> #include<cmath> using namespace std; int main(){ int year; cin>>year; if(year%400==0) if(year%4==0){ if(year%100!=0) cout<<year<<"Yes"; }else{ cout<<year<<"No"; } }
------Input------
3264
------Answer-----
3264 Yes
------Your output-----