| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154144 | 杨登博 | 闰年的数量 | C++ | Wrong Answer | 0 MS | 268 KB | 494 | 2026-05-24 15:34:15 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int rn(int a){ if(a%4==0&&a%100!=0||a%400){ return 1; } return 0; } int main(){ int x,y,s=0; cin>>x>>y; for(int i=x;i<=y;i++){ if(rn(x)){ s++; } } cout<<s; return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
902