摘要: STL常用基础模板 STL模板: 数据结构 堆 头文件:#include<queue> 大根堆:priority_queue<int> q; 小根堆:priority_queue<int,vector<int>,greater<int> > q; 操作: q.top()//取得堆顶元素,并不会弹出 q.pop()//弹 阅读全文
posted @ 2022-09-19 20:16 DAIANZE 阅读(78) 评论(0) 推荐(0) 编辑