Pages

Saturday, August 13, 2011

d532. 文文的求婚 (三)


#include
using namespace std;

int main()
{
int a,b,count=0;
cin>>a>>b;
for(int year=a;year<=b;year++)
{
if((year%4==0 && year%100!=0) || (year%400==0))
count++;
}
cout<
return 0;
}

No comments:

Post a Comment