回答編集履歴
1
バグ修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
int[] a = new int[s.length()];
|
10
10
|
|
11
|
-
for (int i = a.length; --i > 0; a[i] = s.charAt(i) - '0') ;
|
11
|
+
for (int i = a.length; --i >= 0; a[i] = s.charAt(i) - '0') ;
|
12
12
|
|
13
13
|
return a;
|
14
14
|
|