Files
python/TangDou/AoSaiYiBenTong/YBT1055.cpp

16 lines
311 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}