| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 118576 | 唐安轩 | 闰年的数量 | C++ | Wrong Answer | 0 MS | 268 KB | 246 | 2025-05-05 11:44:02 |
#include<bits/stdc++.h> using namespace std; int sd(int x,int y){ int a; for(int i=x;i<=y;i++){ if(i%4==0&&i%100!=0||i%400==0){ a++; } } return a; } int main(){ int x,y; cin>>x>>y; cout<<sd(x,y)<<endl; return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
4195282