Notice
Recent Posts
Recent Comments
Link
목록11279번 (1)
궤도
[백준] 11279번 : 최대 힙
문제 풀이 힙은 보통 우선순위 큐로 구현한다. 그리고 C++ STL에 우선순위 큐가 있다. www.cplusplus.com/reference/queue/priority_queue/?kw=priority_queue priority_queue - C++ Reference container_typeThe second template parameter (Container)Type of the underlying container www.cplusplus.com 소스코드 #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); priority_queue pq; //default : max heap i..
💻 현생/⛓ 알고리즘
2021. 4. 4. 19:16