|
闰年题解
|
#include<iostream>
using namespace std;
int s;
int main()
{
freopen("p1032.in","r",stdin);
freopen("p1032.out","w",stdout);
cin>>s;
if((s%100!=0)&&(s%4==0)||(s%400==0))
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
fclose(stdin);
fclose(stdout);
return 0;
}
( ) |
|