贾子煜 • 10个月前
#include<bits/stdc++.h> using namespace std; int x,y,s,i; int main(){ cin>>x>>y; for(i=x;i<=y;i++){ if(i%4==0&&i%100!=0||i%400==0) s++; } cout<<s; return 0; }
评论: