From e14a61311d0d518460a287e130c1b8f14405878d Mon Sep 17 00:00:00 2001 From: daun3046 Date: Wed, 27 Apr 2022 23:25:04 +0900 Subject: [PATCH] =?UTF-8?q?1181=EB=8B=A8=EC=96=B4=EC=A0=95=EB=A0=AC=20?= =?UTF-8?q?=EA=B9=80=EB=8B=A4=EC=9A=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solution.py" | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git "a/week2/1181\353\213\250\354\226\264\354\240\225\353\240\254/solution.py" "b/week2/1181\353\213\250\354\226\264\354\240\225\353\240\254/solution.py" index e69de29..1eb6107 100644 --- "a/week2/1181\353\213\250\354\226\264\354\240\225\353\240\254/solution.py" +++ "b/week2/1181\353\213\250\354\226\264\354\240\225\353\240\254/solution.py" @@ -0,0 +1,9 @@ +n = int(input()) +word_list = [] +for i in range(n): + word_list.append(input()) +word_list = list(set(word_list)) +word_list = sorted(word_list) +word_list = sorted(word_list, key = lambda x: len(x)) +for word in word_list: + print(word) \ No newline at end of file