Question regarding input

Add a reply

Posted by auser 349 days ago:
How is the stdin fed to the test script?

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}
Posted by mightybs 349 days ago:
While your code will get the job done, here on the golf course you need to find ways to shorten that code thereby sharpening your skills. For Ruby getting the stdin can be much shorter.

Add a reply