12 lines
212 B
C++
12 lines
212 B
C++
#include<iostream>
|
|
using namespace std;
|
|
int main() {
|
|
int year;
|
|
cin>>year;
|
|
if((year%4==0 && year%100!=0)||year%400==0)
|
|
cout<<year<<"是闰年"<<endl;
|
|
else cout<<year<<"不是闰年"<<endl;
|
|
return 0;
|
|
}
|
|
|