ans

Thanos 2020-08-06 16:57:25 18 返回题目

#include<bits/stdc++.h>

using namespace std;

int a,b,n;

char c[10],d[10];

int main()

{

cin>>n;
for(int i=1;i<=n;i++)
{
	cin>>c>>d;
	if(c[0]==d[0])
	{
		cout<<"Tie"<<endl;
	}
	if(c[0]=='R'&&d[0]=='S'||c[0]=='S'&&d[0]=='P'||c[0]=='P'&&d[0]=='R')
	 cout<<"Player1"<<endl;
	if(c[0]=='S'&&d[0]=='R'||c[0]=='P'&&d[0]=='S'||c[0]=='R'&&d[0]=='P')
	 cout<<"Player2"<<endl;
}
return 0;

}

{{ vote && vote.total.up }}