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 Accepted 3ms 536.0 KiB
#2 Wrong Answer Read 28318, expect 365. 3ms 536.0 KiB
#3 Wrong Answer Read 2934, expect 62. 2ms 540.0 KiB
#4 Wrong Answer Read 28318, expect 365. 2ms 536.0 KiB
#5 Wrong Answer Read 28318, expect 344. 2ms 764.0 KiB

信息

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