Pagini recente » Cod sursa (job #2485654) | Cod sursa (job #1252130) | Cod sursa (job #1026581) | Cod sursa (job #2454971) | 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()