#include<iostream>
using namespace std;
int main(){
int year;
cin >> year;
if((year % 400 == 0) || (year % 4 == 0) && (year % 100 != 0))
cout << "yes" ;
else
cout << "no";
return 0;
}
#include<iostream>
using namespace std;
int main(){
int year;
cin >> year;
if((year % 400 == 0) || (year % 4 == 0) && (year % 100 != 0))
cout << "yes" ;
else
cout << "no";
return 0;
}
本文标题:基础练习 闰年判断
本文链接:https://www.haomeiwen.com/subject/mfmsmqtx.html
网友评论