import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while(n-->0){
int m = sc.nextInt();
int count = 0;
for (int i = 0; i < m; i++) {
String a = sc.next();
String b = sc.next();
if (a.charAt(0)-b.charAt(0)==-2) {
count += 2;
continue;
}
if (a.charAt(0)-b.charAt(0)==-1) {
count += 2;
continue;
}
if (a.charAt(0)-b.charAt(0)==3) {
count += 2;
continue;
}
if (a.charAt(0)-b.charAt(0)==0) {
count ++;
continue;
}
}
if (count==m) {
System.out.println("TIE");
continue;
}
if (count>m) {
System.out.println("Player 1");
continue;
}
if (count<m) {
System.out.println("Player 2");
continue;
}
}
sc.close();
}
}
HDOJ 2164 Rock, Paper, or Scissors?(水题)
最新推荐文章于 2018-04-18 20:20:35 发布