Taking input of two different data type in Ruby

后端 未结 0 412
轻奢々
轻奢々 2020-12-05 18:05

Hey How can I take two kinds of data input from a single line in Ruby. Generally I use

X, Y = gets.split.map(&:to_i)

For taking two integ

相关标签:
回答
  • 消灭零回复
提交回复
热议问题