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.

link

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!
Trying http://www.codechef.com/AUG13/problems/CHMOD/
I get TLE always.