回答編集履歴
4
訂正
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
ArrayList<Integer> sum = new ArrayList<Integer>();
|
4
4
|
|
5
|
-
int ind =
|
5
|
+
int ind = 0;
|
6
6
|
|
7
|
-
int max = 0;
|
7
|
+
int max = -100;
|
8
8
|
|
9
9
|
for (int t = 0; t < a.length; t++) {
|
10
10
|
|
3
訂正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
int max = 0;
|
8
8
|
|
9
|
-
for (int t = 0; t < a.length
|
9
|
+
for (int t = 0; t < a.length; t++) {
|
10
10
|
|
11
11
|
|
12
12
|
|
2
訂正
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
sum.add((a[t] - b[t]));
|
14
14
|
|
15
|
-
if (max
|
15
|
+
if (max < (a[t] - b[t])) {
|
16
16
|
|
17
17
|
max = a[t] - b[t];
|
18
18
|
|
1
訂正
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
sum.add((a[t] - b[t]));
|
14
14
|
|
15
|
-
if (max
|
15
|
+
if (max > (a[t] - b[t])) {
|
16
16
|
|
17
17
|
max = a[t] - b[t];
|
18
18
|
|