杭电1040
#include <stdio.h>int main (void){int n,m,a[1005],i,j,t;scanf("%d",&n);while(n--&&scanf("%d",&m)!=EOF){for(i=0;i<m;i++)scanf("%d",&a[i]);for(i=0;i<m-1;i++)for(j=i+1;j<m;j++)if(a[i]>a[j])t=a[i],a[i]=a[j],a[j]=t;t=0;for(i=0;i<m;i++){if(t)printf(" ");printf("%d",a[i]);t=1;}putchar(10);}return 0;}
补充:软件开发 , C++ ,