Run ID:83953

提交时间:2024-07-15 10:36:14

#include<iostream> using namespace std; bool s(int year){ if(year%4==0&&year%100!=0||year%400==0){ return true; } return false; } int main(){ int x,y,c=0; cin >> x >> y; for(int i=x;i<=y;i++){ if(s(i)) c++; } cout<<c; return 0; }