diff --git "a/4\354\243\274\354\260\250/2)\352\270\260\353\212\245\352\260\234\353\260\234/\352\270\260\353\212\245\352\260\234\353\260\234_\353\245\230\354\247\200\354\230\210.py" "b/4\354\243\274\354\260\250/2)\352\270\260\353\212\245\352\260\234\353\260\234/\352\270\260\353\212\245\352\260\234\353\260\234_\353\245\230\354\247\200\354\230\210.py" new file mode 100644 index 0000000..a5ba266 --- /dev/null +++ "b/4\354\243\274\354\260\250/2)\352\270\260\353\212\245\352\260\234\353\260\234/\352\270\260\353\212\245\352\260\234\353\260\234_\353\245\230\354\247\200\354\230\210.py" @@ -0,0 +1,14 @@ +import math + +def solution(progresses, speeds): + progresses = [math.ceil((100 - a) / b) for a, b in zip(progresses, speeds)] + answer = [] + th = 0 + + for idx in range(len(progresses)): + if progresses[idx] > progresses[th]: + answer.append(idx - th) + th = idx + answer.append(len(progresses) - th) + + return answer