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
- DART
- issue
- 안드로이드스튜디오
- Algorithm
- django
- 백준
- C++
- android
- Python
- cos pro
- Flutter
- 코테
- cos pro 1급
- codingtest
- AndroidStudio
- 분할정복
- cos
- 코드품앗이
- 안드로이드
- DFS
- vuejs
- DFS와BFS
- 동적계획법
- 동적계획법과최단거리역추적
- 코딩테스트
- 파이썬
- Vue
- 알고리즘
- BAEKJOON
- 개발
Archives
- Today
- Total
목록단어를 순서대로 적으세요 python (1)
Development Artist

문제 유형 코딩 난이도 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