提交时间:2024-10-27 16:31:45

运行 ID: 54396

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