ZeroJudge & UVa Online Judge answers
#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