提交时间:2024-09-22 21:47:46
运行 ID: 51606
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a % 4 == 0) { if (a % 100 == 0) { if (a % 400 != 0) { cout << "N"; } else { cout << "Y"; } } else { cout << "Y"; } } else { cout << "N"; } return 0; }