title: What is an efficient way to read a line of integers from the STDIN in ruby?
body: <p>I have tried </p>
  
  <pre><code>STDIN.gets.chomp.split(" ")
  </code></pre>
  
  <p>And then converted each elements in the array to Integer.</p>
  
  <p>But I believe there should be a better solution.</p>