Run ID:89673

提交时间:2024-08-28 18:49:19

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