| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137626 | 吕毅心 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 482 | 2025-11-21 18:29:14 |
#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 s(int m){ int l=0,i; if(m%4==0 &&m%100!=0||m%400==0){ l+=1; } return l; } int main(){ int sum=0,m,n,j; cin>>n>>j; for(m=n;m<=j;m++){ sum+=s(m); } cout<<sum; return 0; }