Pagini recente » Rating Diyar Mert Daniel (prinnex) | Cod sursa (job #2889330) | Cod sursa (job #2314602) | Cod sursa (job #2904617) | Cod sursa (job #2733002)
def sorteaza(arr):
return arr.sort()
def main():
#step 1: open files
fin = open("algsort.in","r")
fout = open("algort.out","w")
#step 2:
# read the number of elements
n = int(fin.readline().strip())
# check the type of the variabile n
#print(type(n))
arr = fin.readline().strip().split(" ")
#print(type(arr))
arr = [int(i) for i in arr]
sorteaza(arr)
for i in arr:
fout.write(str(i) + " ")
main()