![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Acm_STL
文章平均质量分 56
徵羽調_xiao賤
这个作者很懒,什么都没留下…
展开
-
ust_1503 zz买衣服
原题链接:http://www.acmore.net/problem.php?id=1503分析:不会做···怎么想都不会做。好像会,又不会。然后是第一次接触map.代码:#include#include#include //map关联容器。using namespace std;map mymap; //string是key,int是价值。int mai原创 2013-06-23 13:54:35 · 901 阅读 · 0 评论 -
hdu_1804 Deli Deli
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1804分析: 用STL中map容器,map记录特殊单词的变换,map 标记特殊单词是否存在。我的代码:#include#include#include#includeusing namespace std;map mymap;map fmap;int m原创 2013-08-17 11:40:14 · 823 阅读 · 0 评论 -
关于优先队列(未编辑完)
什么是优先队列: 普通的队列是一种先进先出的数据结构,元素在队列尾追加,而从队列头删除。在优先队列中,元素被赋予优先级。当访问元素时,具有最高优先级的元素最先删除。优先队列具有最高进先出 (largest-in,first-out)的行为特征。 其实优先队列就是一个大顶堆(最大堆)。而在堆中,根节点的优先级大于子节点的优先级,故优先队列默认时值越大优先级又高。原创 2013-09-17 20:30:07 · 592 阅读 · 0 评论 -
STL Algorithms 之 unique
转载出处: 奇迹之流WonderfloW C++的文档中说,STL中的unique是类似于这样实现的:template ForwardIterator unique ( ForwardIterator first, ForwardIterator last ){ ForwardIterator result=first; while (++fi转载 2013-09-25 15:40:38 · 655 阅读 · 0 评论