Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97638 王思颜 闰年的数量 C++ Wrong Answer 0 MS 272 KB 257 2024-11-16 11:45:01

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int he(int a,int b){ int ans = 0; for (int i = a;i <= b;i++){ if (i % 4 == 0 || i % 400 == 0){ ans++; } } return ans; } int main(){ int n,m; cin>>n>>m; cout<<he(n,m); return 0; }


Run Info:

------Input------
685 1586
------Answer-----
218
------Your output-----
225