题目描述
找条件有点复杂
样例
#include<iostream>
#include<string>
using namespace std;
int main()
{
int n;
cin>>n;
while (n -- ){
string a,b;
cin>>a>>b;
if(a==b) cout<<"Tie"<<endl;
else{
if(a=="Hunter"){
if(b=="Gun") cout<<"Player1"<<endl;
else cout<<"Player2"<<endl;
}
else if(a=="Bear"){
if(b=="Hunter") cout<<"Player1"<<endl;
else cout<<"Player2"<<endl;
}
else{
if(b=="Bear") cout<<"Player1"<<endl;
else cout<<"Player2"<<endl;
}
}
}
return 0;
}