Java光用Scanner读入数据就要1100MS+,后面数据计算怎么办……输出还要花个几百MS,大概是要换C来写了吧……
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
while(in.hasNextLine())
{
in.nextLine();
}
System.out.println(-1);
}
}