Hi, I am new to python. I first used [bbone=text,665]input()[/bbone] and [bbone=text,666]raw_input()[/bbone] to read the data but I got TLE. Then I read some of the tips given here stackoverflow.com/questions/2650 ... imple-loop.
I am still getting TLE. I am reading all input at once and then processing. Please suggest something.
def main():
import sys
t=int
x=input()
x1=0
ab=sys.stdin.readlines()
for x in ab:
a,b=map(int,x.split())
sys.stdout.write(str(a*b)+'\n')
x1+=1
if __name__='__main__':
main()