[백준] 1927 최소 힙 c++
#include #include #include using namespace std; priority_queuepq; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; int k; for (int i = 0; i > k; if (k != 0) { pq.push(k); } else { if (pq.empty()) { cout
2022.07.08