Enormous Input and Output Test

n00m n00m at narod.ru
Sun Oct 4 07:24:08 CEST 2009


This time limits too:

=====================================================
import psyco
psyco.full()

import sys

def foo():
    ##sys.stdin = open('D:/1583.txt', 'rt')
    a = sys.stdin.readlines()
    a = a[1:int(a[0]) + 1]
    for ai in a:
        x, y = ai.split()
        sys.stdout.write(str(int(x) * int(y)) + '\n')

foo()
=====================================================



More information about the Python-list mailing list