프로그래밍1 [Python] 백준 1181번 단어 정렬 import sys n = int(sys.stdin.readline()) a = [] for i in range(n): m = input() if m not in a: a.append(m) c = sorted(a) b = sorted(c, key = len) for i in b: print(i) 개발/Algorithm 2021. 11. 10. 이전 1 다음