반응형
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
- SWEA
- sort
- 파이썬
- 그래프
- 힙큐
- kakao
- SW역량테스트
- 자바스크립트
- 백준
- 자료구조
- 코딩테스트
- SSAFY
- Blind
- DFS
- 알고리즘
- 다이나믹프로그래밍
- 코테
- 싸피
- 스택
- javascript
- 프로그래머스
- BFS
- DP
- boj
- algorithm
- Python
- 카카오
- Backjoon
- 완전탐색
- 삼성
Archives
- Today
- Total
목록압축 풀기 (1)
맞왜틀
1. 간단한 압축 풀기 문제 해결 1. 문자열 인덱싱 하기. D2 2. 하나의 변수를 만들고 알파벳과 그 알파벳의 갯수만큼 문자열로 더해준다. 3. 너비가 10이므로 변수를 길이가 10만큼씩 잘라서 출력해준다. 🌧 2번과 3번을 동시에 할 수도 있을 것 같다😶 소스 코드 T = int(input()) for tc in range(1, 1+T): n = int(input()) document = '' for _ in range(n): word, number = input().split() document += word*int(number) print('#{}'.format(tc)) for i in range(0, len(document), 10): print(document[i:i+10]) 출처: SW E..
Algorithm Problem/Python
2020. 7. 13. 21:58