Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157795 张蔚林 闰年的数量 C++ Wrong Answer 1 MS 272 KB 194 2026-08-17 21:47:10

Tests(0/10):


Code:

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


Run Info:

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