Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138163 杨登博 闰年的数量 C++ Wrong Answer 1 MS 268 KB 553 2025-11-23 16:05:21

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int z(int a,int b){ int r=0; for(int i=1;i<=a;i++){ for(int j=1;j<=b;j++){ if(i%4==0 && i%100==0 &&i%400==0 || j%4==0 && j%100==0 &&j%400==0) r++; } } return r; } int main(){ int x,y,sm=0; cin>>x>>y; cout<<z(x,y); return 0; }


Run Info:

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