# 入力された値を文字列で受け取る input = gets.chomp.to_i hoge = [] input.times do |i| hoge << input.to_s * (input - i) end puts hoge