Created
October 14, 2016 11:31
-
-
Save RakshithNM/1747286f9892abb7886d1e7c200667a9 to your computer and use it in GitHub Desktop.
Turbo Sort - https://www.codechef.com/problems/TSORT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sort specific number of inputs in non decreasing order | |
x = int(raw_input()) | |
nums = [] | |
while x > 0: | |
nums.append(int(raw_input())) | |
x -= 1 | |
nums.sort() | |
for sortednum in nums: | |
print sortednum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment