알고리즘 1. 콜라 문제
풀이:
def solution(a, b, n): answer = 0 while(n >= a): remain_bottle = n % a n = (n//a) * b answer += n n += remain_bottle return answer