首页 > 其他 > 详细

Leap year

时间:2020-05-01 19:34:22      阅读:63      评论:0      收藏:0      [点我收藏+]

Leap year is defined as a year that divisible by 400 or not divisible by 100 but divisible by 4.

#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; }

:D

Leap year

原文:https://www.cnblogs.com/lym11248/p/12814149.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!