| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138164 | 杨登博 | 闰年的数量 | C++ | Wrong Answer | 0 MS | 272 KB | 464 | 2025-11-23 16:07:34 |
#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 z(int a,int b){ int r=0; for(int i=1;i<=a;i++){ if(i%4==0 && i%100==0 &&i%400==0) r++; } return r; } int main(){ int x,y; cin>>x>>y; cout<<z(x,y); return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
1