Run ID:82271
提交时间:2024-07-13 10:23:02
#include<iostream> using namespace std; int main(){ int year; cin>>year; if(year % 400 == 0){ cout<<"Yse"<<endl; }else{ if(year % 4 == 0){ if(year % 100 !=0){ cout<<"Yse"<<endl; }else{ cout<<"No"<<endl; } }else{ cout<<"No"<<endl; } } return 0; }