Algorithm
[알고리즘] 접미사 배열 백준 11656 (Python)
가영리
2022. 1. 17. 02:28
코드
import sys
str = sys.stdin.readline().rstrip()
arr = []
for i in range(len(str)):
arr.append(str)
str = str[1:]
arr.sort()
for i in arr:
print(i)