#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int i;
string a,b;
for(i=1;i<=n;i++){
cin>>a>>b;
if(a[0]==b[0])
cout<<"tie"<<endl;
else if(a[0]=='R'&&b[0]=='S')
cout<<"Player1"<<endl;
else if(b[0]=='R'&&a[0]=='S')
cout<<"Player2"<<endl;
else if(a[0]=='R'&&b[0]=='P')
cout<<"Player2"<<endl;
else if(b[0]=='R'&&a[0]=='P')
cout<<"Player1"<<endl;
else if(a[0]=='P'&&b[0]=='S')
cout<<"Player2"<<endl;
else if(b[0]=='P'&&a[0]=='S')
cout<<"Player1"<<endl;
}
return 0;
}
输出为3
Rock Scissors
Player1
Paper Paper
tie
Rock Paper
Player2
最后一个输出需要按回车,前两个直接出了