Accepted

foo.cc: In function 'int abeatb(char, char)':
foo.cc:5:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    5 |  return (a=='R'&&b=='S'||a=='S'&&b=='P'||a=='P'&&b=='R')?1:2;
      |          ~~~~~~^~~~~~~~
foo.cc:5:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    5 |  return (a=='R'&&b=='S'||a=='S'&&b=='P'||a=='P'&&b=='R')?1:2;
      |                                          ~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 376.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1090 猜拳游戏(2)
语言
C++
递交时间
2022-07-16 17:10:10
评测时间
2022-07-16 17:10:10
评测机
分数
100
总耗时
7ms
峰值内存
384.0 KiB