Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7250 | 赖梓乐 | 08有几个闰年 | C++ | Accepted | 0 MS | 264 KB | 687 | 2025-04-06 00:02:51 |
#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+f; } else{ f=f; } cout<<f; return 0; } //jfh9sdvidf87eiscuisdgf8