1 条题解
-
0
C :
#include <stdio.h> int main(){ int year; scanf("%d",&year); if(year%400==0||(year%4==0&&year%100!=0)) printf("Yes\n"); else printf("No\n"); return 0;}
C++ :
#include<iostream> using namespace std; int main() { int y; cin>>y; if (y%4==0&&y%100!=0||y%400==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
- 1
信息
- ID
- 2606
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者