Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   10 |         if(p1=="Rock"&&p2=="Scissors"||p1=="Scissors"&&p2=="Paper"||p1=="Paper"&&p2=="Rock")cout<<"Player1"<<endl;
      |            ~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:10:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   10 |         if(p1=="Rock"&&p2=="Scissors"||p1=="Scissors"&&p2=="Paper"||p1=="Paper"&&p2=="Rock")cout<<"Player1"<<endl;
      |                                                                     ~~~~~~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Accepted 2ms 448.0 KiB
#3 Accepted 2ms 480.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 532.0 KiB

信息

递交者
类型
递交
题目
P1987 1.7.4石头剪子布
比赛
2026.2.22中级班练习
语言
C++
递交时间
2026-02-22 15:47:26
评测时间
2026-02-22 15:47:26
评测机
分数
100
总耗时
11ms
峰值内存
536.0 KiB