Skip to content

Commit 661079a

Browse files
committed
[BOJ] 모음사전 / Level 2 / 45분 / 성공
1 parent 6d6777e commit 661079a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from itertools import product
2+
3+
def solution(word):
4+
answer = 0
5+
c_list = ['A', 'E', 'I', 'O', 'U']
6+
dictionary = []
7+
8+
for i in range(1, len(c_list) + 1):
9+
for j in product(c_list, repeat=i):
10+
dictionary.append(''.join(j))
11+
dictionary.sort()
12+
13+
return dictionary.index(word) + 1

0 commit comments

Comments
 (0)