回答編集履歴
1
Update
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```ruby
|
6
6
|
|
7
|
-
S.each_with_index.map{|r, i|
|
7
|
+
num_sum = S.each_with_index.map{|r, i|
|
8
8
|
|
9
9
|
r.each_with_index.map{|c, j|
|
10
10
|
|
@@ -14,4 +14,10 @@
|
|
14
14
|
|
15
15
|
}.reduce(:+).sum
|
16
16
|
|
17
|
+
|
18
|
+
|
19
|
+
p num_sum
|
20
|
+
|
21
|
+
#=> 29
|
22
|
+
|
17
23
|
```
|