import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++)
{
int[] a = new int[] { sc.nextInt(), sc.nextInt(), sc.nextInt() };
int[] b = new int[] { sc.nextInt(), sc.nextInt(), sc.nextInt() };
int j;
for (j = 0; j < 3; j++)
if (a[j] != b[j])
{
System.out.println(a[j] < b[j] ? "javaman" : "cpcs");
break;
}
if (j == 3)
System.out.println("same");
}
}
}
ZOJ-3322
最新推荐文章于 2018-07-04 23:56:56 发布