回答編集履歴

1

バグ修正

2020/09/21 02:25

投稿

kazuma-s
kazuma-s

スコア8224

test CHANGED
@@ -34,11 +34,13 @@
34
34
 
35
35
  cin >> a[i][j];
36
36
 
37
- int max = 0, sum = a[0][0];
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