
def stalin_sort(a):
result = []
for x in a:
if not result or x >= result[-1]:
result.append(x)
return result
Форматирование текста аааа

def stalin_sort(a):
result = []
for x in a:
if not result or x >= result[-1]:
result.append(x)
return result
Форматирование текста аааа