import math
def solution(progresses, speeds):
answer = []
# 기능 개발 소요 시간 (일수)
days = []
vs = 0
# days = [7, 3, 9]
for i in range(len(progresses)):
days.append(math.ceil((100-progresses[i]) / speeds[i]))
# 비교하기
for i in range(len(days)):
if days[i] > days[vs]:
answer.append(i - vs)
vs = i
answer.append(len(days) - vs)
return answer
vs = i
: 핵심 적인 부분