Run ID:131513

提交时间:2025-09-27 14:24:33

#include<bits/stdc++.h> using namespace std; bool sum(int x){ if((x%4==0)&&(x%100!=0)||x%400==0){ return true; }else{ return false; } } int main(){ int a,b; cin>>a>>b; int c=0; for(int i=a;i<=b;i++){ if(sum(i)) c++; } cout<<c; return 0; }