提交时间:2024-09-21 23:13:10

运行 ID: 51475

#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; }