Accepted

foo.cc: In function 'int main()':
foo.cc:20:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |                 if(a[i]==0&&b[i]==5||a[i]==5&&b[i]==2||a[i]==2&&b[i]==0)B++;
      |                    ~~~~~~~^~~~~~~~~
foo.cc:20:63: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |                 if(a[i]==0&&b[i]==5||a[i]==5&&b[i]==2||a[i]==2&&b[i]==0)B++;
      |                                                        ~~~~~~~^~~~~~~~~
foo.cc:21:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   21 |                 if(a[i]==0&&b[i]==2||a[i]==2&&b[i]==5||a[i]==5&&b[i]==0) A++;
      |                    ~~~~~~~^~~~~~~~~
foo.cc:21:63: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   21 |                 if(a[i]==0&&b[i]==2||a[i]==2&&b[i]==5||a[i]==5&&b[i]==0) A++;
      |                                                        ~~~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P2395 1.6.8石头剪刀布
语言
C++
递交时间
2022-08-22 14:11:10
评测时间
2022-08-22 14:11:10
评测机
分数
100
总耗时
9ms
峰值内存
256.0 KiB