28

判断闰年

https://ac.nowcoder.com/acm/problem/22012

include<bits/stdc++.h>

using namespace std;
int main(){
int n;
cin>>n;
if((n%4==0 && n%100!=0)|| n%400==0)
cout<<"yes";
else
cout<<"no";
return 0;
}

全部评论

相关推荐

05-09 13:22
门头沟学院 Java
点赞 评论 收藏
分享
评论
6
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务