python3의 내장 정렬 함수는 'stable sort'입니다. 즉, 날먹하기 좋습니다.
This commit is contained in:
6
zeta_python/completed/1181.py
Normal file
6
zeta_python/completed/1181.py
Normal file
@@ -0,0 +1,6 @@
|
||||
N = int(input())
|
||||
S = [input() for i in range(N)]
|
||||
S = list(set(S))
|
||||
S.sort(key=lambda v: (len(v), v))
|
||||
for s in S:
|
||||
print(s)
|
||||
Reference in New Issue
Block a user