| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 118574 | 王煜鑫 | 闰年的数量 | C++ | Wrong Answer | 1 MS | 268 KB | 304 | 2025-05-05 11:33:33 |
#include<bits/stdc++.h> using namespace std; bool runnian(int n){ if(n%4==0&&n%100!=0||n%400==0){ return 1; } else{ return 0; } } int main(){ int a,b; cin>>a>>b; int nax; for(int i=a;i<=b;i++){ if(runnian(i)){ nax++; } } cout<<nax; return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
4195282