Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   17 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:24:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   24 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:31:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   31 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:38:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   38 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:45:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   45 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:52:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   52 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:59:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   59 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:66:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   66 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:73:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   73 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:80:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   80 |                 if(y%4==0&&y%100!=0||y%400==0)
      |                    ~~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer Read 334, expect 365. 1ms 256.0 KiB
#4 Wrong Answer Read 334, expect 365. 1ms 256.0 KiB
#5 Wrong Answer Read 313, expect 344. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1030 A1-4 分支结构练习:今年过去了多少天
语言
C++
递交时间
2022-08-23 18:42:32
评测时间
2022-08-23 18:42:32
评测机
分数
40
总耗时
9ms
峰值内存
384.0 KiB