Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64280 杨莹斌 闰年的数量 C++ Accepted 1 MS 276 KB 299 2024-01-21 12:00:36

Tests(10/10):


Code:

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