https://school.programmers.co.kr/learn/courses/30/lessons/132267 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { public int solution(int a, int b, int n) { int answer=0, spare = 0; while (n > 0) { if (n n개의 빈병을 가지고있고 a병을 가져다주면 b병을 주므로 다음 회차에 받는 콜라는 (n/a)*b이다n이 a로 정확하게 나누어지지 않을 때 남는 병(spare)이..