Wrong Answer

foo.cc: In function 'int isLeap(int)':
foo.cc:6:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    6 |  if (year%400==0 || year%4==0 && year%100!=0)
      |                     ~~~~~~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2002-12-0, expect 2002-11-30. 4ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer Read 1980-3-0, expect 1980-2-29. 1ms 384.0 KiB
#5 Wrong Answer Read 2000-3-0, expect 2000-2-29. 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 1ms 384.0 KiB
#9 Wrong Answer Read 2027-1-0, expect 2026-12-31. 1ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1046 生日日数
语言
C++
递交时间
2021-12-29 16:26:45
评测时间
2021-12-29 16:26:45
评测机
分数
60
总耗时
25ms
峰值内存
384.0 KiB