| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83965 | 张黄源 | 闰年的数量 | C++ | Accepted | 1 MS | 268 KB | 290 | 2024-07-15 10:43:34 |
#include<bits/stdc++.h> using namespace std; bool rn(int a) { if(a%4==0 && a%100!=0||a%400==0) { return true; } else { return false; } } int main() { int x,y,sum=0; cin>>x>>y; for(int i=x; i<=y; i++) { if(rn(i)) { sum++; } } cout<<sum; return 0; }