摘要:
#include//算法头文件sort(a,b)//默认升序sort(a,b,cmp)bool cmp( 类型, 类型){ }重载const bool operator list 对象queue对象stack对象priority_queue对象binary_search(头,尾,查找的数);迭代器queueiterator a; 阅读全文
posted @ 2013-08-14 17:18
一只蚊子
阅读(110)
评论(0)
推荐(0)
摘要:
稳定排序Time Limit : 3000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 51Accepted Submission(s) : 19Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem Description大家都知道,快速排序是不稳定的排序方法。如果对于数组中出现的任意a[i],a[j](i#includeusing namespace std;struct student{ stri... 阅读全文
posted @ 2013-08-14 14:47
一只蚊子
阅读(195)
评论(0)
推荐(0)
摘要:
Max SumTime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 51Accepted Submission(s) : 8Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-seq 阅读全文
posted @ 2013-08-14 11:17
一只蚊子
阅读(172)
评论(0)
推荐(0)
浙公网安备 33010602011771号