Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:7:18: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    7 |         if(n%4==0&&n%100!=0||n%400==0)
      |            ~~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 28337, expect 365. 2ms 536.0 KiB
#2 Wrong Answer Read 28337, expect 365. 2ms 536.0 KiB
#3 Accepted 2ms 552.0 KiB
#4 Wrong Answer Read 28316, expect 344. 2ms 536.0 KiB
#5 Wrong Answer Read 2933, expect 62. 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1030 A1-4 分支结构练习:今年过去了多少天
语言
C++
递交时间
2024-09-19 20:39:29
评测时间
2024-09-19 20:39:29
评测机
分数
20
总耗时
12ms
峰值内存
552.0 KiB