Problem 1003 Java写1003时限好短啊……

dreagonmon | 2017-08-06 11:27:57Author
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); } }