Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:RE many times when using java.In Reply To:RE many times when using java. Posted by:fishing_test at 2009-05-22 13:41:19 This is my java code for input: Scanner cin = new Scanner(System.in); int n = 0; try { //String line = stdin.readLine().trim(); n = cin.nextInt(); for (int i = 1; i <= n; i++) { //line = stdin.readLine().trim(); a[i] = cin.nextInt(); } //line = stdin.readLine().trim(); int m = cin.nextInt(); b = new int[m + 1]; b[0] = -5000000; for (int i = 1; i <= m; i++) { // line = stdin.readLine().trim(); b[i] = cin.nextInt(); } } catch (Exception e) { while (true) { } } What is wrong? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator