![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排序
文章平均质量分 53
小雪乃
这个作者很懒,什么都没留下…
展开
-
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原创 2017-10-06 17:51:53 · 168 阅读 · 0 评论 -
PAT 甲级 1098. Insertion or Heap Sort (25)
According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. At each iteration, insertion sort removes one element from the input原创 2017-10-06 22:30:15 · 191 阅读 · 0 评论 -
PAT 甲级 1101. Quick Sort (25)
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved to its le原创 2017-10-08 15:23:12 · 163 阅读 · 0 评论 -
PAT 甲级 1113. Integer Set Partition (25)
Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2 numbers, respectively. Let S1 and S2 denote the sums of all the numbers in A1原创 2017-10-18 07:43:38 · 204 阅读 · 0 评论 -
PAT 甲级 1075. PAT Judge (25)
The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist for PAT. Input Specification: Each input fil原创 2017-10-03 12:48:30 · 166 阅读 · 0 评论 -
PAT 甲级 1080. Graduate Admission (30)
It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate the admissio原创 2017-10-05 00:13:52 · 184 阅读 · 0 评论 -
PAT 甲级 1083. List Grades (25)
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of which the grades原创 2017-10-05 17:43:29 · 159 阅读 · 0 评论 -
PAT 甲级 1089. Insert or Merge (25)
According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input dat原创 2017-10-06 00:12:26 · 179 阅读 · 0 评论 -
蓝桥杯 基础练习 数列排序
问题描述 给定一个长度为n的数列,将这个数列按从小到大的顺序排列。1<=n<=200 输入格式 第一行为一个整数n。 第二行包含n个整数,为待排序的数,每个整数的绝对值小于10000。 输出格式 输出一行,按从小到大的顺序输出排序后的数列。 样例输入 5 8 3 6 4 9 样例输出 3 4 6 8 9#include <iostream> #include <原创 2017-11-01 15:59:24 · 224 阅读 · 0 评论