Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  if(year%4&&year&100!=0||year%400==0)
                  ~~~^~~
foo.cc:7:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(year%4&&year&100!=0||year%400==0)
     ~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2000是闰年, expect YES. 1ms 384.0 KiB
#2 Wrong Answer Read 2019是闰年, expect NO. 1ms 384.0 KiB
#3 Wrong Answer Read 2020不是闰年, expect YES. 1ms 384.0 KiB
#4 Wrong Answer Read 2100不是闰年, expect NO. 1ms 384.0 KiB
#5 Wrong Answer Read 400是闰年, expect YES. 1ms 384.0 KiB

信息

递交者
类型
递交
语言
C++
递交时间
2021-11-03 17:40:49
评测时间
2021-11-03 17:40:49
评测机
分数
0
总耗时
8ms
峰值内存
384.0 KiB