幽默

博约8486  •  1天前


include<bits/stdc++.h>

using namespace std; int main(){

int n ;
cin >> n;
for(int  i = 0; i < n; i++){
	string s1,s2;
	cin >> s1 >> s2;
	if(s1[0] == 'S' && s2[0] == 'P') cout << "1 0"<<endl;
	else if(s1[0] == 'S' && s2[0] == 'R') cout << "0 1"<<endl;
	else if(s1[0] == 'R' && s2[0] == 'P') cout << "0 1"<<endl;
	else if(s1[0] == 'R' && s2[0] == 'S') cout << "1 0"<<endl;
	else if(s1[0] == 'P' && s2[0] == 'R') cout << "1 0"<<endl;
	else if(s1[0] == 'P' && s2[0] == 'S') cout << "0 1"<<endl;
	else cout << "0 0"<<endl;
}

}


评论:

请先登录,才能进行评论