题解
2025-10-08 19:45:36
发布于:浙江
11阅读
0回复
0点赞
这里要注意判断闰年的方法
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
if((n % 4 == 0 && n % 100 != 0)||(n % 400 == 0)){
cout << "Y";
}else{
cout << "N";
}
return 0;
}
这里空空如也
有帮助,赞一个