| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157765 | 任艺宸 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 238 | 2026-08-17 13:24:21 |
#include<bits/stdc++.h> using namespace std; int a(int x,int y){ int j=0; for(int i=x;i<=y;i++){ if(i%4==0&&i%100!=0||i%400==0){ j++; } } return j; } int main(){ int x,y; cin>>x>>y; cout<<a(x,y); return 0; }