Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- udemy
- programmers
- Algospot
- server
- greedy
- graph
- 인프런
- Cleancode
- BASIC
- 종만북
- BFS
- String
- BOJ
- JavaScript
- Math
- 백준
- sorting
- dfs
- 정수론
- C
- php
- web
- Algorithm
- 따라하며 배우는 C언어
- C언어
- DP
- 따배씨
- 생활코딩
- Python
- 따라하면서 배우는 C언어
Archives
- Today
- Total
몽상실현개발주의
[BOJ] 11656 / 접미사 배열 / Python 파이썬 본문
[BOJ] 11656 / 접미사 배열 / Python 파이썬
https://www.acmicpc.net/problem/11656
풀이
모든 접미사 배열 문자열을 List 에 담고, sorted() 로 정렬 해 주었다.
string = input()
stringList = []
for i in range(len(string)):
stringList.append(string[i:])
for s in sorted(stringList):
print(s)
'Algorithm PS > BOJ' 카테고리의 다른 글
[BOJ] 10430 / 나머지 / Python 파이썬 (0) | 2021.05.27 |
---|---|
[BOJ] 1158 / 요세푸스 문제 / Python 파이썬 (0) | 2021.05.27 |
[BOJ] 11655 / ROT13 / Python 파이썬 (0) | 2021.05.26 |
[BOJ] 10820 / 문자열 분석 / Python 파이썬 (0) | 2021.05.26 |
[BOJ] 10809 / 알파벳 찾기 / Python 파이썬 (0) | 2021.05.25 |
Comments