![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
stl
文章平均质量分 52
99一零七19
这个作者很懒,什么都没留下…
展开
-
B - Queries about less or equal elements CodeForces - 600B (STL 水题)
B - Queries about less or equal elements CodeForces - 600B You are given two arrays of integers a and b. For each element of the second array bj you should find the number of elements in array a th...原创 2018-07-25 16:24:10 · 129 阅读 · 0 评论 -
C++STL 优先队列priority_queue使用
头文件:#include <queue> 一.申明方式 std::priority_queue<T> q; std::priority_queue<T, std::vector<T>, cmp> q; 1.普通方法: priority_queue<int> q; //大的优先级高 priority_queue<...原创 2018-08-07 12:25:03 · 776 阅读 · 0 评论 -
C++ STL set使用
一.主要用途:去重、排序 set中没有重复的元素,set中的元素都是排好序的。 set常用红黑树存储,插入、查找、删除时间复杂度均为O(logn) 二.常用方法 begin(); 第一个元素地址 clear(); 清楚set容器 count(x); ...原创 2018-08-21 09:27:14 · 747 阅读 · 0 评论