Time Limit: 1000MS Memory limit: 32678K
题目描述
给你N(N<=100)个数,请你按照从小到大的顺序输出。
输入
输入数据第一行是一个正整数N,第二行有N个整数。
输出
输出一行,从小到大输出这N个数,中间用空格隔开。
示例输入
51 4 3 2 5
示例输出
1 2 3 4 5
#include<iostream> #include<string> #include<algorithm> using namespace std; void BInsertSort(int a[],int n) { int i,j,low,high,mid; for(i=2;i<=n;i++) { a[0]=a[i]; low=1;