#include<iostream>
using namespace std;
int get(string a)
{
if(a=="Hunter")return 2;
if(a=="Bear")return 1;
return 0;
}
int main()
{
int n;
string a,b;
cin>>n;
while(n--)
{
cin>>a>>b;
if(get(a)==(get(b)+1)%3) cout<<"Player2\n";
else if(get(a)==get(b)) cout<<"Tie\n";
else cout<<"Player1\n";
}
return 0;
}
//很有意思,照应题目的解法,简化了步骤,但是要注意不能写while(cin>>n,n--)
作者:CSQN
链接:https://www.acwing.com/activity/content/code/content/9790811/
来源:AcWing