if狂
2025-06-21 18:05:38
发布于:四川
6阅读
0回复
0点赞
#include<bits/stdc++.h>
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 == "Rock" && b == "Scissors") || (a == "Scissors" && b == "Paper") || (a == "Paper" && b == "Rock")) cout << "Player1" << endl;
else cout << "Player2" << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个