| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145671 | 张晓冉 | 08有几个闰年 | C++ | Wrong Answer | 0 MS | 272 KB | 506 | 2026-01-25 17:58:01 |
#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 n(int x,int y){ int s = 0; for(int i = x;i <= y;i++){ if(i % 4 == 0 && i % 100 != 0 || i % 400 == 0){ s += 1; } } return s; } int main(){ int x,y; cin>>x>>y; cout<<n(x,y); return 0; }
------Input------
3637 2104 2522
------Answer-----
1
------Your output-----
0