提交时间:2024-01-23 16:26:42

运行 ID: 125118

#include<iostream> using namespace std; int main(){ int y,a,b,c; cin>>y; a=y%4; b=y%400; c=y%100; if(c==0){ if(b==0){ cout<<"Y"; } else{ cout<<"N"; } } if(c!=0){ if(a==0){ cout<<"Y"; } else{ cout<<"N"; } } return 0; }