| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148537 | 刘益梵 | 闰年的数量 | C++ | Accepted | 0 MS | 276 KB | 265 | 2026-02-25 16:22:38 |
#include<bits/stdc++.h> using namespace std; int ooo(int n){ if(n%400==0 || (n%4==0 && n%100!=0)){ return 1; } return 0; } int main(){ int a,b,s=0; cin>>a>>b; for(int i=a;i<=b;i++){ if(ooo(i)==1){ s++; } } cout<<s; return 0; }