Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115831 陈铎文 闰年的数量 C++ Accepted 2 MS 276 KB 282 2025-04-05 09:07:10

Tests(10/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; cin>>a>>b; f(a,b); return 0; }