#include<iostream> u
2022-11-27 17:07:15
发布于:北京
644阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int year;
cin>>year;
if(year%4 == 0 && year%100 != 0 || year%400 == 0){
cout<<"Y"<<endl;
}
else{
cout<<"N"<<endl;
}
return 0;
}
全部评论 2
#include<iostream>
using namespace std;
int main(){
int y;
cin>>y;
if(y%4 == 0 && y%100 != 0 || y%400 == 0){
cout<<"Y"<<endl;
}else{
cout<<"N"<<endl;
}
return 0;
}2024-07-25 来自 北京
0#include<iostream>
#include<ctime>
#include<cstdlib>
using namespace std;
int main(){
int year;
cin>>year;
if(year%40 && year%100!=0||year%4000){
cout<<"Y"<<endl;
}
else{
cout<<"N"<<endl;2022-12-25 来自 陕西
0
有帮助,赞一个