![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
tch_1997
这个作者很懒,什么都没留下…
展开
-
STL in ACM
STL in ACM 1 概况.......................................................... 2 1.1 STL是什么............................................... 2 1.2 为什么我们需要学习STL..................................转载 2017-03-03 20:29:41 · 1618 阅读 · 0 评论 -
HDU2095find your present (2)
http://acm.hdu.edu.cn/showproblem.php?pid=2095 Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of pr原创 2017-01-23 23:27:13 · 179 阅读 · 0 评论 -
HDU3347Calculate the expression 【map】
http://acm.hdu.edu.cn/showproblem.php?pid=3347 Problem Description You may find it’s easy to calculate the expression such as: a = 3 b = 4 c = 5 a + b + c = ? Isn’t it?原创 2017-03-12 19:36:43 · 241 阅读 · 0 评论 -
priority_queue(优先队列)的用法
优先队列(priority queue) 优先级队列 是不同于先进先出队列的另一种队列。每次从队列中取出的是具有最高优先权的元素。 首先它是一个队列,但是它强调了“优先”二字,所以,已经不能算是一般意义上的队列了,它的“优先”意指取队首元素时,有一定的选择性,即根据元素的属性选择某一项值最优的出队~ 关于priority_queue 1,关于转载 2017-04-04 15:48:39 · 222 阅读 · 0 评论 -
常用STL【模板】
1. stack [cpp] view plain copy stackint>st;//栈st,用于存放int型数据 st.push(3);//将3入栈 st.push(2);//将2入栈 st.pop();//栈顶2出栈 int Top = st.top();//获取栈顶元素,即3 int Size = st转载 2017-04-04 15:57:12 · 240 阅读 · 0 评论