반응형 힙1 [프로그래머스 - 힙] 더 맵게 📄 [힙] 더 맵게 C++ Source Code #include #include #include using namespace std; #define MIN_E 1 #define INT_PRIORITY int, vector, greater const int calculateScoville(priority_queue & scovilles) { const int lower_Scoville = scovilles.top(); scovilles.pop(); const int second_LowerScoville = scovilles.top(); scovilles.pop(); // MARK: - 섞은 음식의 스코빌 지수 = 가장 맵지 않은 음식의 스코빌 지수 + (두 번째로 맵지 않은 음식의 스코빌 지수 * 2) r.. 2019. 4. 14. 이전 1 다음 반응형