回答編集履歴

1

" -> '

2020/03/09 09:02

投稿

rhiroe
rhiroe

スコア2349

test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  n = 10 # example
34
34
 
35
- puts (1..n).to_a.tap { |arr| print arr.join(' + ').concat(" = ") }.sum
35
+ puts (1..n).to_a.tap { |arr| print arr.join(' + ').concat(' = ') }.sum
36
36
 
37
37
  # 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55
38
38