迭代器
文章平均质量分 52
briup_acmer
这个作者很懒,什么都没留下…
展开
-
NYOJ 484 The Famous Clock
The Famous Clock时间限制:1000 ms | 内存限制:65535 KB难度:1描述 Mr. B, Mr. G and Mr. M are now in Warsaw, Poland, for the 2012’s ACM-ICPC World Finals Contest. They’ve decided to take a 5 hours tra原创 2014-07-06 21:13:40 · 562 阅读 · 0 评论 -
挑战程序设计竞赛p42(贪心)
/*迭代器pair里面可以存放两个数,相当于struct,数据类型可以变化,如果进行sort排序默认是按照第一个数进行从大到小排序 */ #include #include#include using namespace std;const int N = 5;int s[N]={1,2,4,6,8};int t[N]={3,5,7,9,10}; int原创 2014-07-06 21:23:07 · 552 阅读 · 0 评论 -
C++库函数 deque
deque和vector一样都是标准模板库中的内容,deque是双端队列,在接口上和vector非常相似,在许多操作的地方可以直接替换。假如读者已经能够有效地使用vector容器,下面提供deque的成员函数和操作,进行对比参考。原创 2014-07-11 15:20:36 · 595 阅读 · 0 评论