Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

python 2.7 vs 3.1

$
0
0

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)

Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>