1 条题解
-
1
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n;i++){ string a,b; cin>>a>>b; if(a[0]==b[0])cout<<"Tie"<<endl; else if(a[0]=='R') if(b[0]=='P') cout<<"Player2"<<endl; else cout<<"Player1"<<endl; else if(a[0]=='P') if(b[0]=='S') cout<<"Player2"<<endl; else cout<<"Player1"<<endl; else if(a[0]=='S') if(b[0]=='R') cout<<"Player2"<<endl; else cout<<"Player1"<<endl; } return 0; }
- 1
信息
- ID
- 6969
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 1
- 标签
- 递交数
- 3
- 已通过
- 2
- 上传者