You are here: Home → Forums → Grid Computing → Question regarding input
Add a reply
a=STDIN.read.split(" ").to_a.collect{|v|v.to_i}
A 29degrees diversion |
In ruby, just to read the input it takes twice the amount of bytes:
a=STDIN.read.split(" ").to_a.collect{|v|v.to_i}