TSORT  Turbo Sort
Given the list of numbers, you are to sort them in non decreasing order.
Input
t – the number of numbers in list, then t lines follow [t <= 10^6].
Each line contains one integer: N [0 <= N <= 10^6]
Output
Output given numbers in non decreasing order.
Example
Input:
5 5 3 6 7 1
Output:
1 3 5 6 7
hide comments
premtiw:
20191206 12:11:33
if you're using C++; then make sure that you allow multiple elments of same thing.


huy_samsung:
20190702 10:59:47
i got NZEC error in java  i used merger sort  when i test  everything is ok. but when i submit  i got NZEC error


imkiller:
20180603 09:20:49
Just Write a merge sort! 

anh_duc:
20180418 14:27:28
Quick Sort got me AC in one go 

code_aim:
20170705 07:08:09
0.15s 

Bryan Poulsen:
20170215 19:45:50
I submitted the same solution 2 times with Python 3: first time I got WA, second time I got AC... Kind of random. Same solution works with python2.6  3.6 (minus the random single WA) 

tungtd95:
20161111 11:24:02
combsort is fine 

vigneshkv:
20161012 14:22:25
Counting sort got me AC !! :) 

Kaushal Pranav B:
20160721 07:25:23
Quicksort did not get accepted but merge sort did. 

square1001:
20160717 05:05:05
I submitted 2 submission (completely same code) and first I got TLE but second I got AC for 2.49 seconds!!! 
Added by:  Roman Sol 
Date:  20050314 
Time limit:  2.700s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ERL JSRHINO NODEJS PERL6 VB.NET 
Resource:  ZCon 