Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5587 | 高振轩 | 闰年的数量 | C++ | Wrong Answer | 0 MS | 264 KB | 224 | 2024-11-30 15:22:34 |
#include<bits/stdc++.h> using namespace std; int s(int x,int y){ int z=0; for(int i=x;i<=y;i++){ if(i%4==0||i%400==0&&i%100!=0){ z++; } }return z; } int main(){ int a,b; cin>>a>>b; cout<<s(a,b); }
------Input------
507 2591
------Answer-----
506
------Your output-----
521