Enormous Input and Output Test

Irmen de Jong irmen.NOSPAM at xs4all.nl
Wed Oct 7 16:35:39 EDT 2009


n00m wrote:
> numerix's solution was excelled by Steve C's one (8.78s):
> http://www.spoj.pl/ranks/INOUTEST/lang=PYTH
> I don't understand nothing.
> 

I just got my solution accepted, it ran in 14 seconds though.
I have no idea how to shave more seconds off, so I think 7.5 seconds for the fastest 
solution is really mindboggling.

Things that eventually made my solution run within the time limit:
- I didn't use int()
- I used Psyco

Those two resulted in the biggest speed increase.
Tweaking with buffered/unbuffered IO was insignificant.

Cheers
Irmen



More information about the Python-list mailing list