记录详情

Wrong Answer

foo.cc: In function 'bool isleap(int)':
foo.cc:6:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    6 |     if(n%4==0&&n%100!=0||n%400==0) return true;
      |        ~~~~~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:13:16: warning: 's' is used uninitialized [-Wuninitialized]
   13 |         d1-=d;s+=d1;
      |               ~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 412.0 KiB
#2 Wrong Answer Read 2, expect 33. 4ms 412.0 KiB
#3 Wrong Answer Read 30, expect 365. 3ms 412.0 KiB
#4 Wrong Answer Read 395, expect 730. 4ms 396.0 KiB
#5 Wrong Answer Read 758, expect 1000. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1004 OO1-4 日期类Date
语言
C++
递交时间
2023-06-28 13:04:58
评测时间
2023-06-28 13:04:58
评测机
分数
20
总耗时
21ms
峰值内存
412.0 KiB