Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d0856d

Browse files
committed
모음사전
1 parent 1394018 commit 0d0856d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎JongHo/Programmers/84512.py

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+
words = ["A", "E", "I", "O", "U"]
5+
6+
all_words = []
7+
8+
for i in range(1, 6):
9+
for j in product(words, repeat=i):
10+
all_words.append("".join(j))
11+
all_words.sort()
12+
13+
return all_words.index(word) + 1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /