码迷,mamicode.com
首页 >  
搜索关键字:tasks and back stack    ( 26134个结果
hdoj 1022 Train Problem I 【简易STL】
题意:不解释(这题是学数据结构必做的) 以前自学数据结构的时候,只是会顺序表来模拟栈。最近简单学习了stack头文件 又来做了一遍(还是以前的味道) 代码: #include #include #include using std::stack; stack s; char s1[100], s2[100]; int vis[10]; char stac[100]; int main...
分类:其他好文   时间:2014-08-18 22:09:23    阅读次数:283
POJ3343&HDU2413Against Mammoths (二分匹配)经典
Against Mammoths Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 316 Accepted Submission(s): 90 Problem Description Back to year 3024, hum...
分类:其他好文   时间:2014-08-18 22:09:03    阅读次数:437
ZOJ 1450 Minimal Circle 最小圆覆盖
套了个模板直接上,貌似没有随机化序列 QAQ//#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #include #include #include #include #i...
分类:其他好文   时间:2014-08-18 21:42:12    阅读次数:210
STL 里面的几个容器简叙
出处:http://blog.csdn.net/niushuai666/article/details/6654951list1.list的成员函数push_back()把一个对象放到一个list的后面,而 push_front()把对象放到前面2.list容器不支持在iterator加一个数来指向...
分类:其他好文   时间:2014-08-18 20:16:32    阅读次数:259
C#常用的集合类型(ArrayList类、Stack类、Queue类、Hashtable类、SortedList类)
1.ArrayList类ArrayList类主要用于对一个数组中的元素进行各种处理。在ArrayList中主要使用Add、Remove、RemoveAt、Insert四个方法对栈进行操作。Add方法用于将对象添加到 ArrayList 的结尾处;Remove方法用于从 ArrayList 中移除特定...
分类:其他好文   时间:2014-08-18 20:15:32    阅读次数:219
hdu3849 By Recognizing These Guys, We Find Social Networks Useful
无向图求桥边数量,按照题目输入顺序输出桥边。 注意存的brig和边的对应关系。 #include #include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #pragma comment(linker, "/STACK...
分类:Web程序   时间:2014-08-18 16:21:02    阅读次数:229
不会写重试,自定义了一个重试
不会写重试,我用了这么个方法来 作为重试机制: def web(self): time.sleep(5) i = 0 a = self.br.current_url print a while i < 10: self.br.back() if self.br.current_url == a: i...
分类:其他好文   时间:2014-08-18 16:12:22    阅读次数:213
如何屏蔽掉浏览器后退按钮的几个解决办法
Q311 How do I disable the "Back" button of a browser?You are here:irt.org|FAQ|JavaScript|History| Q311 [previousnext]Easy answer - you can't.Longer an...
分类:其他好文   时间:2014-08-18 16:07:22    阅读次数:206
C++各个容器比较(vector,deque,list,set,map,queue,stack)
1、vector(连续的空间存储,可以使用[ ]操作符)可以快速的访问随机的元素,快速的在末尾插入元素,但是在序列中间随机的插入、删除元素要慢。而且,如果一开始分配的空间不够时,有一个重新分配更大空间的过程。2、deque(小片的连续,小片间用链表相连,实际上内部有一个map的指针,因为知道类型,所...
分类:编程语言   时间:2014-08-18 10:34:13    阅读次数:350
【ThinkingInC++】26、下推栈(push_down stack)不会越出内存
头文件 /** * 功能:下推栈(push_down stack)不会越出内存 * 时间:2014年8月18日08:13:36 * 作者:cutter_point */ #ifndef STACK_H_INCLUDED #define STACK_H_INCLUDED struct Stack { struct Link { void* data; //这个结构...
分类:编程语言   时间:2014-08-18 09:18:33    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!