#891. C++-快速排序-定义一整数数组,如:10个整数...,并通过快速排序(正序,从小到大)进行排序并打印

    ID: 891 Type: Default 1000ms 256MiB Tried: 6 Accepted: 1 Difficulty: 10 Uploaded By: Tags>CSP厦门信息学厦门创客大赛C++项目信息科技特长生其他排序

C++-快速排序-定义一整数数组,如:10个整数...,并通过快速排序(正序,从小到大)进行排序并打印

Background

Description

C++-快速排序-定义一整数数组,如:10个整数:5 9 10 10 7 10 2 20 1 5,并通过快速排序(正序,从小到大)进行排序并打印 image

Format

Input

Output

Samples

10
5 9 10 10 7 10 2 20 1 5
1 2 5 5 7 9 10 10 10 20

Limitation

1s, 1024KiB for each test case.