![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
文章平均质量分 79
普通网友
这个作者很懒,什么都没留下…
展开
-
关于C++中各种容器
容器简介经典的数据结构数量有限,但是我们常常重复着一些为了实现向量、链表等结构而编写的代码,这些代码都十分相似,只是为了适应不同数据的变化而在细节上有所出入。STL容器就为我们提供了这样的方便,它允许我们重复利用已有的实现构造自己的特定类型下的数据结构,通过设置一些模版类,STL容器对最常用的数据结构提供了支持,这些模板的参数允许我们指定容器中元素的数据类型,可以将我们许多重复而乏味的工作简化转载 2013-09-20 21:25:31 · 2217 阅读 · 0 评论 -
hdu40069(优先级队列)
The kth great numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 5050 Accepted Submission(s): 2070Problem DescriptionXiao Ming原创 2013-07-28 23:03:32 · 709 阅读 · 0 评论 -
hdu3347(模拟+STL)
Calculate the expressionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 686 Accepted Submission(s): 346Problem DescriptionYou may原创 2013-08-17 20:16:25 · 843 阅读 · 0 评论 -
hdu4666(multiset+优先级队列+堆)
HyperspaceTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 987 Accepted Submission(s): 476Problem DescriptionThe great Mr.Smith原创 2013-12-10 15:27:53 · 887 阅读 · 0 评论 -
HDU1381(map)
Crazy SearchTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1216 Accepted Submission(s): 473Problem DescriptionMany people lik原创 2013-05-05 21:09:45 · 756 阅读 · 0 评论 -
HDU1434(优先级队列)
幸福列车Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 1433 Accepted Submission(s): 386Problem Description一批幸福的列车即将从杭州驶向幸福的终点站——温原创 2013-05-22 15:45:42 · 763 阅读 · 0 评论 -
hdu2112(Dijkstra+map)
HDU TodayTime Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10156 Accepted Submission(s): 2396Problem Description经过锦囊相助,海东集团终于度过了危机原创 2013-07-25 21:54:50 · 646 阅读 · 0 评论 -
hdu2609(hash+STL+字典树)
How manyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1040 Accepted Submission(s): 406Problem DescriptionGive you n ( n How m原创 2013-08-17 13:30:38 · 837 阅读 · 0 评论 -
hdu3172(字典树+并查集)
Virtual FriendsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2691 Accepted Submission(s): 765Problem DescriptionThese days, you原创 2013-07-24 00:23:06 · 793 阅读 · 0 评论 -
hdu1873(优先级排序)
看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3856 Accepted Submission(s): 1574Problem Description看病要排队这个是地球人都知道的常识。不过经过原创 2013-07-28 23:25:45 · 863 阅读 · 0 评论 -
hdu4245(map)
A Famous Music ComposerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 691 Accepted Submission(s): 408Problem DescriptionMr. B is原创 2013-09-01 17:55:54 · 892 阅读 · 0 评论 -
hdu3183(贪心)
A Magic LampTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1039 Accepted Submission(s): 392Problem DescriptionKiki likes traveli原创 2013-08-25 23:41:25 · 922 阅读 · 0 评论 -
NkOJ2218(字典树+STL)
2218: 语音识别Time Limit: 1000 ms Memory Limit: 65536 kB Total Submit : 74 (18 users) Accepted Submit :15 (13 users) Page View : 318 Font Style:AaAaAa 近些年语音识别技术越来越原创 2013-05-06 18:49:53 · 845 阅读 · 0 评论 -
C++中利用List容器实现快速排序
List容器对应普通数据结构中的链表。List容器支持快速随机插入、删除,但不支持快速随机访问元素;这与vector容器是不一样的,vector容器不支持快速随机插入、删除,但支持快速随机访问元素。 List容器的特性决定可以在不额外开辟存储空间的基础上实现插入排序,且时间复杂度为O(N^2),与数组实现快排的时间复杂度一样。 C++原创 2013-12-15 10:42:42 · 2631 阅读 · 0 评论 -
poj2643(map+字典树)
lectionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3674 Accepted: 1758DescriptionCanada has a multi-party system of government. Each candidate is ge原创 2013-12-14 20:35:02 · 976 阅读 · 0 评论 -
hdu4699(堆+模拟)
EditorTime Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 628 Accepted Submission(s): 237Problem Description Sample Input原创 2013-08-24 00:18:33 · 1007 阅读 · 0 评论 -
hdu1871(优先级队列)
无题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2707 Accepted Submission(s): 1171Problem Description就要复试了,外地的考生都要在学校附近住宾馆了。假设在学原创 2013-07-28 22:31:48 · 743 阅读 · 0 评论 -
hdu4268(贪心+set)
Alice and BobTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1836 Accepted Submission(s): 662Problem DescriptionAlice and Bob's原创 2013-07-31 14:37:47 · 871 阅读 · 0 评论 -
hdu1896(模拟+优先级队列)
StonesTime Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 659 Accepted Submission(s): 389Problem DescriptionBecause of the wrong stat原创 2013-07-29 00:14:42 · 790 阅读 · 0 评论 -
hdu1237(STL)
简单计算器Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10564 Accepted Submission(s): 3407Problem Description读入一个只包含 +, -, *, / 的非负整原创 2013-07-29 09:53:49 · 1102 阅读 · 0 评论 -
HDU3283(next_permutation)
The Next PermutationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 619 Accepted Submission(s): 440Problem DescriptionFor this pr原创 2013-06-18 01:18:49 · 845 阅读 · 0 评论 -
hdu4393(模拟+queue)
Throw nailsTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1007 Accepted Submission(s): 323Problem DescriptionThe annual school b原创 2013-07-31 23:56:39 · 856 阅读 · 0 评论 -
HDU1509(优先级队列+模拟)
Windows Message QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2271 Accepted Submission(s): 888Problem DescriptionMessage原创 2013-05-04 22:42:38 · 991 阅读 · 0 评论 -
hdu2275(multiset)
Kiki & Little Kiki 1Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 708 Accepted Submission(s): 235Problem DescriptionKiki is con原创 2013-09-20 22:51:44 · 1021 阅读 · 0 评论