컴공생의 다이어리
[프로그래머스] 기능개발 - 파이썬(Python) 본문
[프로그래머스] 기능개발 - 파이썬(Python)
import math
def solution(progresses, speeds):
answer = []
progress_day = [math.ceil((100 - x) / y) for x, y in zip(progresses, speeds)]
count = 0
for i in progress_day:
if i > count:
answer.append(1)
count = i
else:
answer[-1] += 1
return answer
https://programmers.co.kr/learn/courses/30/lessons/42586
코딩테스트 연습 - 기능개발
프로그래머스 팀에서는 기능 개선 작업을 수행 중입니다. 각 기능은 진도가 100%일 때 서비스에 반영할 수 있습니다. 또, 각 기능의 개발속도는 모두 다르기 때문에 뒤에 있는 기능이 앞에 있는
programmers.co.kr
728x90
반응형
'Development > Algorithm & Coding Test' 카테고리의 다른 글
[프로그래머스] 다리를 지나는 트럭 - 파이썬(Python) (0) | 2022.05.10 |
---|---|
[프로그래머스] 프린터 - 파이썬(Python) (0) | 2022.05.09 |
[프로그래머스] 베스트앨범 - 파이썬(Python) (0) | 2022.05.07 |
[프로그래머스] 위장 - 파이썬(Python) (0) | 2022.05.06 |
[프로그래머스] 전화번호 목록 - 파이썬(Python) (0) | 2022.05.05 |
Comments