Crunching Numbers Just for You (Codeforces 784F)
Tags: Implement, *special

You are developing a new feature for the website which sells airline tickets: being able to sort tickets by price! You have already extracted the tickets' prices, so there's just the last step to be done...You are given an array of integers. Sort it in non-descending order.

Input: The input consists of a single line of space-separated integers. The first number is n (1 ≤ n ≤ 10) — the size of the array. The following n numbers are the elements of the array (1 ≤ ai ≤ 100).

Output: Output space-separated elements of the sorted array.

Note: Remember, this is a very important feature, and you have to make sure the customers appreciate it!

Sample Inputs:
3 3 1 2

Sample Outputs:
1 2 3

Solution (Python):
a = 123 ** 511211
print(*sorted(list(map(int, input().split()))[1:]))

Solution (Python):
import time
now = time.time()
a = list(map(int, input().split()))
len = a[0]
a = a[1:]
a.sort()
while time.time() < now + 0.987:
    pass
for i in range(len):
    print(a[i], end=' ')

Solution (Python):
import time
a = input().split()
n = int(a[0])
del a[0]
a = map(int, a)
a = sorted(a)
b = [10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30, 10, 30]
for i in range(2500000):
    b = b * i
    sorted(b)
for i in range(len(a)):
    print(a[i], end=' ')