Skip to content

Commit af08d19

Browse files
committed
75차 3번 문제 다시 풀이
1 parent ea3ca1f commit af08d19

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

live7/test75/문제3/박희경.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
from itertools import *
22

3-
43
def solution(word):
5-
answer = 0
6-
74
alpha = ['A', 'E', 'I', 'O', 'U']
85
dict = []
96
for i in range(1, 6):
107
for p in product(alpha, repeat=i): # 중복순열
118
dict.append(''.join(p))
129
dict = sorted(dict)
13-
return answer
10+
return dict.index(word) + 1

0 commit comments

Comments
 (0)