[프로그래머스] 라면공장
import java.util.*; class Solution { public int solution(int stock, int[] dates, int[] supplies, int k) { int answer = 0; int total = k-stock; //더 빌려야할 밀가루양 int day = 0; //몇일째인지 int i = 0; //빌릴 수 있는 날 PriorityQueue pq = new PriorityQueue(Collections.reverseOrder()); while(total>0){ day ++; stock--; if(i
2020.03.31