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