有難う御座います。そして各要素-1したい場合はどう書けばいいのでしょうか?
map{|i|i-1}したいです。
エラーになりました。
```:ruby
x = readlines.map{|line| line.chomp.split(/\s/).map(&:to_i)}
puts x.map{|i|i-1} .map{|row| row.join(" ")}.join("\n")
```
Main.rb:3:in `-': no implicit conversion of Integer into Array (TypeError)
from Main.rb:3:in `block in <main>'
from Main.rb:3:in `map'
from Main.rb:3:in `<main>'
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/03 10:33
2018/12/03 10:34
2018/12/03 10:51
2018/12/03 10:55
2018/12/04 06:54 編集
2018/12/04 07:02
2018/12/04 07:04
2018/12/04 07:06
2018/12/04 07:08
2018/12/04 07:09
2018/12/04 07:19
2018/12/04 07:43
2018/12/04 07:48
2018/12/04 07:57
2018/12/04 12:35
2018/12/04 12:40
2018/12/04 12:41
2018/12/04 12:48
2018/12/04 12:54