提交时间:2024-01-23 16:12:00

运行 ID: 124933

#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%4==0 && (n%100!=0 || n%400==0)){ cout<<"Y"<<endl; } else cout<<"N"<<endl; return 0; }