Home (Python)[백준] 접미사 배열
Post
Cancel

(Python)[백준] 접미사 배열

11656번: 접미사 배열

문제 풀이


소스 코드

1
2
3
4
5
6
7
8
9
word = input()
word_list = []

for _ in word:
    word_list.append(word)
    word = word[1:]

for i in sorted(word_list):
    print(i)
This post is licensed under CC BY 4.0 by the author.