sort
文章平均质量分 84
小学生反弹
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sort的用法
sort的用法:详细见cplusplus。1.默认的sort函数是按升序排。对应于1)sort(a,a+n); //两个参数分别为待排序数组的首地址和尾地址2.可以自己写一个cmp函数,按特定意图进行排序。对应于2)例如:// sort algorithm example#include // std::cout#include原创 2013-10-02 14:54:06 · 651 阅读 · 0 评论 -
stack of flapjacks uva 120
UVa OJ 120 - Stacks of Flapjacks (烙饼叠)Time limit: 3.000 seconds限时:3.000秒 Background背景Stacks and Queues are often considered the bread and butter of data structures and find use in arch转载 2013-10-02 16:42:14 · 1074 阅读 · 1 评论 -
ID CodesFrom:UVa, 146
ID CodesFrom:UVa, 146 ID Codes It is 2084 and the year of Big Brother has finally arrived, albeit a century late. In order to exercise greater control over its citizens a原创 2013-10-02 17:56:21 · 651 阅读 · 0 评论 -
Train Swapping From:UVa, 299
Train SwappingFrom:UVa, 299 Train Swapping At an old railway station, you may still encounter one of the last remaining ``train swappers''. A train swapper is an employee原创 2013-10-02 17:54:10 · 692 阅读 · 0 评论 -
UVa, 10107 What is the Median?
What is the Median? The ProblemMedian plays an important role in the world of statistics. By definition, it is a value which divides an array into two equal parts. In this problem you are原创 2013-10-05 09:48:17 · 1098 阅读 · 0 评论 -
UVa, 10041 Vito's Family UVa, 10041
Problem C: Vito's family Background The world-known gangster Vito Deadstone is moving to New York. He has a very big family there, all of them living in Lamafia Avenue. Since he will原创 2013-10-05 09:46:50 · 713 阅读 · 0 评论
分享