
栈和队列
文章平均质量分 78
清溪浅水
这个作者很懒,什么都没留下…
展开
-
优先队列——priority queue
1.优先队列(priority queue)优先级队列 是不同于先进先出队列的另一种队列。每次从队列中取出的是具有最高优先权的元素。2.优先队列用法(1) 最常用的用法 priority_queueqi 通过 故示例1中输出结果为:9 6 5 3 2(2) 在示例1中,如果我们要把元素从小到大原创 2013-08-01 13:42:10 · 716 阅读 · 0 评论 -
UVA——11997——K Smallest Sums
You're given k arrays, each array has k integers. There are kk ways to pick exactly one element in each array and calculate the sum of the integers. Your task is to find the k smallest sums among th原创 2014-02-18 10:19:09 · 676 阅读 · 0 评论 -
hdu——1022——Train Problem I
Problem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is t原创 2014-02-19 11:03:12 · 553 阅读 · 0 评论