| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163710 | 成书骏 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 474 | 2026-10-28 19:35:50 |
#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=0; int s(int x,int y){ for(int i=x;i<=y;i++){ if((i%4==0&&i%100!=0)||i%400==0){ n++; } } return n; } int main(){ int a,k; cin>>a>>k; cout<<s(a,k); return 0; }