Run ID:113876

提交时间:2025-03-16 19:28:27

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; bool out(int x){ if(x%4==0&&x%100!=0||x%400==0){ return 1; } else{ return 0; } } int main(){ int a,b,r=0; cin>>a>>b; for(int i=a;i<=b;i++){ if(out(i)){ r++; } } cout<<r; return 0; }