不难
2025-07-22 19:50:12
发布于:广东
0阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main()
{
int a;
std::cin >> a;
if (a % 100 != 0)
{
if (a % 4 == 0)
{
cout << "Y";
}
else
{
cout << "N";
}
}
else
{
if (a % 400 == 0)
{
cout << "Y";
}
else
{
cout << "N";
}
}
return 0;
}
这里空空如也
有帮助,赞一个