题目描述
题目较简单,注意什么情况赢即可。
样例
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int n;
string s1,s2;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>s1>>s2;
if(s1==s2) cout<<"Tie"<<endl;
else if(s1=="Hunter" && s2=="Gun") cout<<"Player1"<<endl;
else if(s1=="Bear" && s2=="Hunter") cout<<"Player1"<<endl;
else if(s1=="Gun" && s2=="Bear") cout<<"Player1"<<endl;
else cout<<"Player2"<<endl;
}
return 0;
}