咋就10分了(裂开),求大佬指教
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int n;
cin>>n;
string p1,p2;
for(int i=1;i<=n;i++)
{
cin>>p1>>p2;
if(p1[0]=='R'&&p2[0]=='S')
cout<<"Player1"<<endl;
else if(p1[0]=='R'&&p2[0]=='P')
cout<<"Player2"<<endl;
else if(p1[0]=='S'&&p2[0]=='R')
cout<<"Player2"<<endl;
else if(p1[0]=='S'&&p2[0]=='P')
cout<<"Player1"<<endl;
else if(p1[0]=='P'&&p2[0]=='R')
cout<<"Player2"<<endl;
else if(p1[0]=='P'&&p2[0]=='S')
cout<<"Player1"<<endl;
else
cout<<"Tie"<<endl;
}
return 0;
}