Enormous Input and Output Test

n00m n00m at narod.ru
Sun Oct 4 02:16:01 EDT 2009


And this code time limits (no matter with or without Psyco):

import psyco
psyco.full()

import sys

def foo():
    ##sys.stdin = open('D:/1583.txt', 'rt')
    sys.stdin.readline()
    while 1:
        try:
            x, y = sys.stdin.readline().split()
            sys.stdout.write(str(int(x) * int(y)) + '\n')
        except:
            break

foo()



More information about the Python-list mailing list