Accepted

foo.cc: In function 'int main()':
foo.cc:17:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(a[i%x]==2&&b[i%y]==5||a[i%x]==0&&b[i%y]==2||a[i%x]==5&&b[i%y]==0)
      ~~~~~~~~~^~~~~~~~~~~
foo.cc:17:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(a[i%x]==2&&b[i%y]==5||a[i%x]==0&&b[i%y]==2||a[i%x]==5&&b[i%y]==0)
                                                  ~~~~~~~~~^~~~~~~~~~~
foo.cc:20:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(a[i%x]==5&&b[i%y]==2||a[i%x]==2&&b[i%y]==0||a[i%x]==0&&b[i%y]==5)
       ~~~~~~~~~^~~~~~~~~~~
foo.cc:20:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(a[i%x]==5&&b[i%y]==2||a[i%x]==2&&b[i%y]==0||a[i%x]==0&&b[i%y]==5)
                                                   ~~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 420.0 KiB
#2 Accepted 2ms 404.0 KiB
#3 Accepted 1ms 396.0 KiB

信息

递交者
类型
递交
题目
P2395 1.6.8石头剪刀布
语言
C++
递交时间
2021-11-05 14:23:26
评测时间
2021-11-05 14:23:26
评测机
分数
100
总耗时
5ms
峰值内存
420.0 KiB