1 / 3
Feb 2007

!local/usr/python

import sys
i=0
n=int(raw_input())
for i in range(0,n):
b,c=[int(x) for x in raw_input().split()]
print b*c
i=i+1
sys.exit(0)

I am getting TLE..whats the prob with this code..what are the modifications to be made

  • created

    Feb '07
  • last reply

    Feb '07
  • 2

    replies

  • 117

    views

  • 3

    users

nneonneo> It is not feasible to do this quickly in Python, because the language is partially interpreted. You should try C/C++/Pascal for this question...

  1. Use highlighting to make easier reading code for those who help you.
  2. Don't create themes with similar meanings:

    MOve to Invert	0 	mailsatish 	11
    MOve to Invert	1 	mailsatish 	17
    multiplication	1 	mailsatish 	56
multiplication	2 	mailsatish 	30

Wrap code in [ code ] tags to avoid having phpBB strip out leading indentation.