在今天我我备战了蓝桥杯,做了一些题,不是很轻松。
这个是判断闰年,平年的:
#include<bits/stdc++.h>
using namespace std;
int run (int year)
{
if((year%4==0&&year%100!=0)||year%400==0)
{
return 366;
}
else
{
return 365;
}
}
int main()
{
int year=2016;
cout<<<<endl;
}
730;