Accepted

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

信息

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