您的位置:首页 > 其它

ZOJ-3322

2013-12-27 19:08 288 查看
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");
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: