easy
2025-07-08 16:31:42
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int is_leap(int year){
if(year%4 == 0 && year%100 != 0 || year%400 == 0){
return true;
}else{
return false;
}
}
int main(){
int year;
cin>>year;
if(is_leap(year)==true)cout<<"Y"<<endl;
else if(is_leap(year)==false)cout<<"N"<<endl;
return 0;
}
//coder: Y38
这里空空如也
有帮助,赞一个