题解
2025-07-21 17:19:24
发布于:广东
5阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
bool leapYear(int x)
{
return x%400 == 0||x%4==0&&x%100!=0;
}
int main()
{
int n;
cin>>n;
if(leapYear(n)) cout<<'Y';
else cout<<'N';
return 0;
}
这里空空如也
有帮助,赞一个