Run ID:5606

提交时间:2024-11-30 20:22:56

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int year; cin>>year; if (year%400==0){ cout<<year<<" Yes"<<endl; } else { if(year%4==0){ if(year%100!=0){ cout<<year<<" Yes"; } else { cout<<year<<" No"; } } } return 0; }