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 |
非常诡异的问题,呼唤大牛用Java写的,写成 Scanner sc = new Scanner(System.in); long n = sc.nextLong(); int[] dp = new int[(int) (n + 1)]; 就会有Runtime Error 如果一开始就定义数组的话,写成 Scanner sc = new Scanner(System.in); int dp[] = new int[1000001]; long n = sc.nextLong(); 就会直接AC 不知道哪位大牛能解释下 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator