Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157764 任艺宸 闰年的数量 C++ Wrong Answer 1 MS 268 KB 228 2026-08-17 13:22:20

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int a(int x,int y){ int j=0; for(int i=x;i<=y;i++){ if(i%4==0||i%100==0){ j++; } } return j; } int main(){ int x,y; cin>>x>>y; cout<<a(x,y); return 0; }


Run Info:

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