Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120994 | 周泽洋 | 08判断是否为闰年 | C++ | Accepted | 1 MS | 272 KB | 224 | 2025-06-02 19:26:12 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int x; cin>>x; if(((x%4==0)&&(x%100!=0))||(x%400==0)){ cout<<x<<" "<<"Yes"; }else{ cout<<x<<" "<<"No"; } }