Run ID:5587

提交时间:2024-11-30 15:22:34

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