问题 C: 快速排序 qsort [2*]
时间限制: 1 Sec 内存限制: 128 MB题目描述
输入n个整数,用快速排序的方法进行排序
Input
第一行数字n 代表接下来有n个整数
接下来n行,每行一个整数
Output
Output
升序输出排序结果
每行一个数据
Sample Input
5 12 18 14 13 16
Sample Output
12 13 14 16 18
Hint
n<=5000每个数据<=5000
User: 吴锦诚 Date: 2018/6/11
#include <iostream>
#include <string.h>
#include <algorithm>
using
namespace
std;
void
quickSort(
int
a[],
int
left,
int
right){