when i tried to submit solution in python 3 it shows TLE but the same program when submitted in python 2.7 is accepted.(only ‘print’ syntax is changed). I saw that there is not even a single accepted solution of python 3.1 of this question. Is python 3.1 slower than python 2.7 or there is some problem with codechef.
i tried question “turbo sort” in easy practice section. code is
import sys
sys.stdin.readline()
n = map(int,sys.stdin.readlines())
for i in sorted(n):
print(i)