| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162968 | 赵锦鹏 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 300 | 2026-10-24 09:15:17 |
#include<iostream> using namespace std; bool rn(int x) { if(x%4==0&&x%100!=0||x%400==0) { return true; } else { return false; } } int main() { int s=0; int x,y; cin>>x>>y; for(int i=x;i<=y;i++) { if(rn(i)) { s++; } } cout<<s; return 0; }