| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155566 | 郑雨心 | 闰年的数量 | C++ | Wrong Answer | 1 MS | 272 KB | 278 | 2026-06-07 19:36:02 |
#include<iostream> using namespace std; bool rn(int n){ if((n%4==0&&n%100!=0)||(n%400==0)){ return true; } else{ return false; } } int main(){ int a,b,s; cin>>a>>b; for(int i=a;i<=b;i++) { if(rn(i)) { s++; } } cout<<s; return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
4195282