Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164779 杜禹轩 闰年的数量 C++ Accepted 1 MS 272 KB 244 2026-11-07 14:47:13

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int r(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 a,b; cin>>a>>b; cout<<r(a,b); return 0; }