题解(Python + c++)
2026-08-10 12:27:23
发布于:浙江
2阅读
0回复
0点赞
#c++
#include <iostream>
using namespace std;
int main(){
int Y;
cin >> Y;
if (Y%40 && Y%100!=0 || Y%4000){
cout << "Y" << endl;
return 0;}
cout<<"N";
return 0;
}
#python
Y = int(input())
if Y%40 and Y%100!=0 or Y%4000:
print("Y")
else:
print("N")
这里空空如也

有帮助,赞一个