判断是否为闰年
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int year;
cin>>year;
if ((year%4==0&&year%100!=0)||year%400==0)
cout<<year<<"is runnian\n"<<endl;
else cout<<year<<"isn't runnian\n"<<endl;
return 0;
}
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int year;
cin>>year;
if ((year%4==0&&year%100!=0)||year%400==0)
cout<<year<<"is runnian\n"<<endl;
else cout<<year<<"isn't runnian\n"<<endl;
return 0;
}