Ruby Input/Output

what are the best input methods for Ruby?

I tried using gets and puts for the problem cylinder earlier in the April Challenge.


but it seems they are not good enough for large input files. Are there any better methods? Or are such problems out of Ruby’s range?

1 Like

I want to know this too!
I get TLE always.