| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 8421 | 刘逸杭 | 闰年的数量 | C++ | Accepted | 0 MS | 272 KB | 246 | 2025-12-20 19:53:26 |
#include<bits/stdc++.h> using namespace std; bool fac(int y){ return y%400==0 || y%100!=0&&y%4==0; } int main(){ int x,y,ans=0; cin>>x>>y; for(int i=x;i<=y;i++) if(fac(i)) ans++; cout<<ans; return 0; }