| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142476 | 刘益梵 | 闰年的数量 | C++ | Accepted | 0 MS | 280 KB | 312 | 2026-01-10 17:07:58 |
#include <bits/stdc++.h> using namespace std; int rn(int x){ int res=0; if(x%400==0 || (x%4==0 && x%100!=0)){ res=1; } return res; } int main (){ int x,y; cin>>x>>y; int sum=0; for(int i=x;i<=y;i++){ if(rn(i)==1){ sum++; } } cout<<sum; return 0; }