Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114688 | 黎瑾萱 | 闰年的数量 | C++ | Wrong Answer | 0 MS | 276 KB | 257 | 2025-03-23 11:17:51 |
#include <bits/stdc++.h> using namespace std; int adj(int a,int b){ int c=0; for(int i=a;i<=b;i++){ if(i%4==0 || i%100!=0 && i%400==0){ c++; } } return c; } int main(){ int x,y; cin>>x>>y; cout<<adj(x,y)<<endl; return 0; }
------Input------
685 1586
------Answer-----
218
------Your output-----
225