#include <iostream> using namespace std; int main(){ int y; cout<<"enter a year"<<endl; //y%4==0&&100%y!=0||400%y==0 cin>>y; if(y%4==0){ if(100%y==0){ if(y%400==0){ cout<<"zhe shi run nian"; }else{ cout<<"zhe bu shi run nian"; } }else{ cout<<"zhe shi run nian"; } }else{ cout<<"zhe bu shi run nian"; } return 0; }