Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3058 孙浚轩 闰年的数量 C++ Accepted 0 MS 260 KB 258 2024-03-30 17:52:38

Tests(10/10):


Code:

#include<iostream> using namespace std; int isleap(int x){ if(x%4==0&&x%100!=0||x%400==0) return 1; else return 0; } int main(){ int x,y,leaps=0; cin>>x>>y; for(;x<=y;x++) leaps+=isleap(x); cout<<leaps; return 0; }