提交时间:2025-12-26 14:18:54

运行 ID: 77497

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if(n%4==0) { if(n%100==0&&n%400!=0) { cout << "N"; } else { cout << "Y"; } } else { cout << "N"; } return 0; }