Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Algorithm
- 코드품앗이
- 개발
- Flutter
- BAEKJOON
- Vue
- DFS와BFS
- 안드로이드스튜디오
- DFS
- Python
- cos pro 1급
- issue
- AndroidStudio
- 안드로이드
- django
- C++
- 코테
- 동적계획법과최단거리역추적
- 백준
- 동적계획법
- 알고리즘
- DART
- 분할정복
- vuejs
- android
- cos
- codingtest
- 파이썬
- cos pro
- 코딩테스트
Archives
- Today
- Total
목록단어를 순서대로 적으세요 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bCNxWQ/btruoK9F2IQ/dkLs5tcMtl8w4x3XTRS3mk/img.png)
문제 유형 코딩 난이도 normal Note 1. 임계값 K를 업데이트 하면서 필요한 라인 계산. 2. 띄워쓰기 때문에 is_first로 첫 라인의 첫 단어는 띄워쓰기를 빼는 것으로 계산. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(K, words): answer = 1 rest_len = K is_first = True for word in words: if is_first: length = len(word) else: length = len(word) + 1 if 0
Algorithm/COS
2022. 2. 28. 17:39