标签:
Description
Input
Output
Sample Input
Sample Output
1 #include<iostream> 2 #include<cstring> 3 #include<cstdio> 4 #include<algorithm> 5 using namespace std; 6 int main() 7 { 8 int n,m,a[1200]; 9 scanf("%d",&m); 10 while(m--) 11 { 12 scanf("%d",&n); 13 for(int i=0;i<n;i++) 14 { 15 scanf("%d",&a[i]); 16 } 17 sort(a,a+n); 18 for(int i=0;i<n-1;i++) 19 { 20 printf("%d ",a[i]); 21 } 22 printf("%d\n",a[n-1]); 23 } 24 }
标签:
原文地址:http://www.cnblogs.com/guofeng1022/p/4239939.html