-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2137.py
27 lines (21 loc) · 793 Bytes
/
2137.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# https://www.urionlinejudge.com.br/judge/en/problems/view/2137
def sort_library(library):
return sorted(library)
def tests():
assert sort_library(['1233', '0015', '0100']) == ['0015', '0100', '1233']
assert sort_library(['0752', '1110', '0001', '6322', '8000', '6321', '0000']) == ['0000', '0001', '0752', '1110',
'6321', '6322', '8000']
def uri_format():
while True:
try:
n = int(input())
library = []
for i in range(n):
library.append(input())
for number in sort_library(library):
print(number)
except EOFError:
break
if __name__ == '__main__':
tests()
uri_format()