题解
2023-08-06 11:52:43
发布于:安徽
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++)
{
string s1,s2;
cin>>s1>>s2;
if(s1s2) cout<<"Tie"<<endl;
else if(s1"Rock")
if(s2=="Scissors") cout<<"Player1"<<endl;
else cout<<"Player2"<<endl;
else if(s1=="Paper")
if(s2=="Scissors") cout<<"Player2"<<endl;
else cout<<"Player1"<<endl;
else
if(s2=="Rock") cout<<"Player2"<<endl;
else cout<<"Player1"<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个