Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(a[i]==0&&b[i]==2||a[i]==2&&b[i]==5||a[i]==5&&b[i]==0)
      ~~~~~~~^~~~~~~~~
/in/foo.cc:24:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(a[i]==0&&b[i]==2||a[i]==2&&b[i]==5||a[i]==5&&b[i]==0)
                                          ~~~~~~~^~~~~~~~~
/in/foo.cc:27:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(a[i]==2&&b[i]==0||a[i]==5&&b[i]==2||a[i]==0&&b[i]==5)
       ~~~~~~~^~~~~~~~~
/in/foo.cc:27:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(a[i]==2&&b[i]==0||a[i]==5&&b[i]==2||a[i]==0&&b[i]==5)
                                           ~~~~~~~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 332.0 KiB
#2 Wrong Answer 2ms 272.0 KiB
#3 Wrong Answer 2ms 400.0 KiB

信息

递交者
类型
递交
题目
P2395 1.6.8石头剪刀布
语言
C++
递交时间
2023-08-26 19:21:48
评测时间
2023-08-26 19:21:48
评测机
分数
30
总耗时
6ms
峰值内存
400.0 KiB