Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7248 赖梓乐 08有几个闰年 C++ Wrong Answer 0 MS 256 KB 882 2025-04-06 00:01:40

Tests(4/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 main(){ int a,s,d,f; //int f=3; cin>>a>>s>>d; if((a%400==0) || (a%100!=0) && (a%4==0)){ f=1; } else{ f=0; } if((s%400==0) || (s%100!=0) && (s%4==0)){ f=1+f; } else{ f=f; } if((d%400==0) || (d%100!=0) && (d%4==0)){ f=1+1+f; } else{ f=f; } cout<<f; return 0; } //wiefgrygrcgsdygdwefvsugvcusdutcsdgvf //suigfyshsdbvsdf //sdifhdsv p'idvidfyvjb


Run Info:

------Input------
2745 3218 3660
------Answer-----
1
------Your output-----
2