摘要:
set,关联容器,元素不允许有重复,数据被组织成一棵红黑树,以牺牲插入和删除元素的效率换来了查找元素的高效率(O(logN))。1、初始化set st;2、begin返回第一个元素的迭代器3、end返回最后一个元素的迭代器4、clear清空5、empty判断是否为空,为空返回true6、count返... 阅读全文
posted @ 2013-09-10 11:34
Plumrain
阅读(529)
评论(0)
推荐(0)
摘要:
SRM 468DIV1 250pt题意:给出字典,按照一定要求进行查找。解法:模拟题,暴力即可。tag:waterscore: 0....这是第一次AC的代码: 1 /* 2 * Author: plum rain 3 * score : 0 4 */ 5 #line 11 "T9.cpp" 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include 15 #include 16 #include ... 阅读全文
posted @ 2013-09-10 10:47
Plumrain
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号