Pagini recente » Cod sursa (job #1110405) | Cod sursa (job #968599) | Cod sursa (job #1401384) | Cod sursa (job #1318242) | Cod sursa (job #2733004)
def sorteaza(arr):
return arr.sort()
def main():
#step 1: open files
fin = open("algsort.in","r")
fout = open("algsort.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()