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