| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83956 | 石晋骁 | 闰年的数量 | C++ | Wrong Answer | 0 MS | 272 KB | 298 | 2024-07-15 10:38:00 |
#include<bits/stdc++.h> using namespace std; int sum(int a,int b){ int c = 0; for(int i = a;i <= b;i++){ if(i % 100 == 0 && i % 400 == 0){ c++; }else if(i % 4 == 0){ c++; } } cout << c; } int main(){ int x,y; cin >> x >>y; sum(x,y); return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
225