| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131515 | 李明秦 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 482 | 2025-09-27 14:28:42 |
#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 mas(int a,int b ){ int h=0; for(int i=a;i<=b;i++){ if((i%4==0&&i%100!=0)||(i%400==0)){ h++; } } return h; } int main(){ int a,b; cin>>a>>b; cout<<mas(a,b); return 0; }