I was trying INOUTEST. The best I could come up with was 16.62 sec.
import sys
import psyco
psyco.full()
def main():
s = sys.stdin
t = s.readline()
for l in s:
n, m = map(int, l.split())
print n*m
if __name__ == '__main__':
main()
Is there a way to process inputs without converting n and m to integers? Please give me a hint of it.