Files
python/TangDou/AoSaiYiBenTong/YBT1055.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

16 lines
311 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
//cin读入优化
std::ios::sync_with_stdio(false);
int a;
cin >> a;
if ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) {
cout << "Y" << endl;
} else {
cout << "N" << endl;
}
return 0;
}