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
--
http://mail.python.org/mailman/listinfo/python-list