![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排序
Detective-Conan
且随疾风前行 身后亦须留心
展开
-
(模板题)sdut 3402 数据结构实验之排序五:归并求逆序数(归并排序)
数据结构实验之排序五:归并求逆序数 Time Limit: 20ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 对于数列a1,a2,a3…中的任意两个数ai,aj (i < j),如果ai > aj,那么我们就说这两个数构成了一个逆序对;在一个数列中逆序对的总数称之为逆序数,如数列 1 6 3 7 2 4 9中原创 2016-07-24 20:49:13 · 384 阅读 · 0 评论 -
(模板题)sdut 3403 数据结构实验之排序六:希尔排序(希尔排序)
数据结构实验之排序六:希尔排序 Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 我们已经学习了各种排序方法,知道在不同的情况下要选择不同的排序算法,以期达到最好的排序效率;对于待排序数据来说,若数据基本有序且记录较少时, 直接插入排序的效率是非常好的,希尔排序就是针对一组基本有序的少原创 2016-07-24 21:26:36 · 320 阅读 · 0 评论 -
poj 2503 Babelfish
Babelfish Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 40643 Accepted: 17319 Description You have just moved from Waterloo to a big city. The people her原创 2016-08-04 13:10:41 · 233 阅读 · 0 评论 -
poj 2388 Who's in the Middle
Who's in the Middle Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 39218 Accepted: 22785 Description FJ is surveying his herd to find the most average cow原创 2016-08-02 17:51:53 · 201 阅读 · 0 评论 -
poj 2299 Ultra-QuickSort
Ultra-QuickSort Time Limit: 7000MS Memory Limit: 65536K Total Submissions: 54865 Accepted: 20178 Description In this problem, you have to analyze a particular sorting原创 2016-08-02 19:29:20 · 223 阅读 · 0 评论 -
PAT 1095. Cars on Campus (30)
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with all the information available, you a...原创 2018-03-26 11:45:11 · 153 阅读 · 0 评论