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;
      |        ~~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 1ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 4ms 256.0 KiB
#3 Wrong Answer User output longer than standard answer. 2ms 256.0 KiB
#4 Wrong Answer User output longer than standard answer. 1ms 256.0 KiB
#5 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1110 OO1-4 日期类Date
语言
C++
递交时间
2022-08-16 15:42:25
评测时间
2022-08-16 15:42:25
评测机
分数
0
总耗时
13ms
峰值内存
384.0 KiB