Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import time
- sys.stdin = open('d:\\input.txt')
- sys.stdout = open('d:\\time.txt', 'a')
- SIZE = 10000000
- TIMES = 1
- res_time = 0
- for i in range(TIMES):
- a = [int(input()) for j in range(SIZE)]
- s_time = time.clock()
- a.sort()
- t_time = time.clock()
- res_time += t_time-s_time
- print('Python: %.2f' % (res_time/TIMES))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement