提交时间:2024-01-23 16:43:34

运行 ID: 125313

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