From e561d0434fc9eeb364dfa0af6345d1455cd8b9c6 Mon Sep 17 00:00:00 2001 From: yongjun-0903 <472dyd@gmail.com> Date: Mon, 7 Apr 2025 20:36:21 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=98=A4=EB=8A=98=EC=9D=98=20=EC=95=8C?= =?UTF-8?q?=EA=B3=A0=EB=A6=AC=EC=A6=98]=20=EB=AA=A8=EC=9D=8C=EC=82=AC?= =?UTF-8?q?=EC=A0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\252\250\354\235\214\354\202\254\354\240\204.py" | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 "yongjun-0903/\353\252\250\354\235\214\354\202\254\354\240\204.py" diff --git "a/yongjun-0903/\353\252\250\354\235\214\354\202\254\354\240\204.py" "b/yongjun-0903/\353\252\250\354\235\214\354\202\254\354\240\204.py" new file mode 100644 index 0000000..eacc2c6 --- /dev/null +++ "b/yongjun-0903/\353\252\250\354\235\214\354\202\254\354\240\204.py" @@ -0,0 +1,13 @@ +from itertools import product + +def solution(word): + vowels = ['A', 'E', 'I', 'O', 'U'] + + dictionary = [] + + for i in range(5): + for v in product(vowels, repeat = i+1): + dictionary.append(''.join(v)) + dictionary.sort() + + return dictionary.index(word) + 1