提交时间:2024-01-23 16:27:05
运行 ID: 125125
#include<iostream>//使用cin,cout,必须调用库iostream,否则编译出错 using namespace std; int main() { int a,b; cin>>a; if (a%100==0){ if (a%400==0){ cout<<"Y"; }else{ cout<<"N"; }}else{if (a%4==0){ cout<<"Y"; }else{ cout<<"N"; } } }