Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115829 陈铎文 闰年的数量 C++ Wrong Answer 0 MS 260 KB 266 2025-04-05 09:00:26

Tests(0/10):


Code:

#include<iostream> using namespace std; int f(int i,int j){ int s=0; for(int k=i;k<=j;k++){ if(k%4==0 and k%100!=0 or k%400==0){ s++; } } cout<<s<<endl; } int main(){ int a,b; f(a,b); return 0; }


Run Info:

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