Run ID:5588
提交时间:2024-11-30 15:24:19
#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%100!=0||i%400==0){ z++; } }return z; } int main(){ int a,b; cin>>a>>b; cout<<s(a,b); }