提交时间:2025-03-15 13:13:26

运行 ID: 312699

#include <iostream> #include <string> using namespace std; string s1,s2; int main() { int n; cin>>n; char a[101],b[101]; for(int i=0; i<n; i++) { cin>>a>>b; if(a[0]=='R'&&b[0]=='S'||a[0]=='S'&&b[0]=='P'||a[0]=='P'&&b[0]=='R') { cout<<"Player1"<<endl; } else if(a[0]==b[0]) { cout<<"Tie"<<endl; } else { cout<<"Player2"<<endl; } } return 0; }