思路:
代码如下:
import java.io.BufferedInputStream;
import java.util.Scanner;
public class MergeSort {
public static void main(String[] args) {
Scanner cin = new Scanner(new BufferedInputStream(System.in));
int n = cin.nextInt();
int[] S = new int[n];
for (int i=0;i
输入:
10
8 5 9 2 6 3 7 1 10 4
输出:
1 2 3 4 5 6 7 8 9 10



