回答編集履歴
1
バグ修正
test
CHANGED
@@ -34,11 +34,13 @@
|
|
34
34
|
|
35
35
|
cin >> a[i][j];
|
36
36
|
|
37
|
-
int
|
37
|
+
int sum = a[0][0];
|
38
38
|
|
39
39
|
for (int j = 0; j < n; j++)
|
40
40
|
|
41
41
|
sum += a[1][j];
|
42
|
+
|
43
|
+
int max = sum;
|
42
44
|
|
43
45
|
for (int i = 1; i < n; i++) {
|
44
46
|
|