import sys
import psyco
psyco.full()
x=int(sys.stdin.readline())
lst = [int(sys.stdin.readline()) for i in xrange(x)]
lst.sort()
print lst
import sys
import psyco
psyco.full()
x=int(sys.stdin.readline())
lst = [int(sys.stdin.readline()) for i in xrange(x)]
lst.sort()
print lst
without import psyco and psyco.full()
it gives TLE ERROR
Simple sorting would not work here. Try to look at the constraints, and take advantage of it. :). And as far as I know psyco is no longer available on cube cluster, which codechef uses.
try using withtout psyco.