简单
2025-01-21 17:31:32
发布于:江苏
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int is_leap(int n){
if(n%4==0 && n%100!=0 || n%400==0){
return true;
}
else{
return false;
}
}
int main() {
int n;
cin >> n;
if(is_leap(n)) cout << "Y" << endl;
else cout << "N" << endl;
return 0;
}
这里空空如也
有帮助,赞一个