Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118575 唐安轩 闰年的数量 C++ Wrong Answer 0 MS 268 KB 246 2025-05-05 11:43:00

Tests(0/10):


Code:

#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 c,d; cin>>c>>d; cout<<sd(c,d)<<endl; return 0; }


Run Info:

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