提交时间:2024-01-23 17:10:16
运行 ID: 125543
#include<iostream> #include<cstdio> using namespace std; int main(){ int a; cin>>a; if(a%4>0){ cout<<"N"; } else if(a%100==0&&a%400!=0){ cout<<"N"; } else{ cout<<"Y"; } return 0; }