Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(a%4==0 and a%100==0 or a%400==0)
     ~~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 364.0 KiB
#2 Accepted 1ms 424.0 KiB
#3 Wrong Answer 1ms 336.0 KiB
#4 Wrong Answer 1ms 328.0 KiB
#5 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1004 判断闰年
语言
C++
递交时间
2024-10-15 17:05:23
评测时间
2024-10-15 17:05:23
评测机
分数
60
总耗时
8ms
峰值内存
424.0 KiB