
ACM之排序
文章平均质量分 52
思潮
这个作者很懒,什么都没留下…
展开
-
hdu 1236 排名(排序)
考察排序,比较水的一题,加强一下对符号的重载,内用了stl处理,所以程序就变的相对简单了~~ #include #include #include #include using namespace std; struct stu { string s;原创 2011-10-05 11:42:21 · 830 阅读 · 0 评论 -
hdu 2111 Saving HDU
这道题目让我了解了优先队列的具体的函数重载, #include #include #include #include #include #include using namespace std; struct node { int pi,mi; bool原创 2011-10-05 16:30:43 · 1319 阅读 · 0 评论 -
hdu 1009 FatMouse' Trade(排序)
#include #include #include #include #include #include using namespace std; struct node { int Ji,Fi; bool operator <(const node a原创 2011-10-06 10:47:22 · 362 阅读 · 0 评论 -
排序算法
转自:http://www.cppblog.com/shongbee2/archive/2009/04/25/81058.html 花了很长时间终于把排序的基础学了一下,这段时间学了很多东西,总结一下: 学的排序算法有:插入排序,合并排序,冒泡排序,选择排序,希尔排序,堆排序,快速排序,计数排序,基数排序,桶排序(没有实现)。比较一下学习后的心得。 我不是很清楚他们的时间复杂度,也真的转载 2012-03-04 08:47:37 · 388 阅读 · 0 评论