第一轮第二题(判断是否是闰年)
#include<iostream>
using namespace std;
int main()
{
int year;
bool isLeapYear;
cout<<"Enter the year:";
cin>>year;
isLeapYear=((year%4==0 && year%100!=0) || year%400==0);
if(isLeapYear){
cout<<"is Leap Year."<<endl;
}else{
cout<<"is not Leap Year."<<endl;
}
return 0;
}