标签:
Description
Input
Output
Sample Input
Sample Output
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; int main() { #ifdef CDZSC_OFFLINE freopen("in.txt","r",stdin); #endif int t,n,a[1010],i; scanf("%d",&t); while(t--) { scanf("%d",&n); for(i=0; i<n; i++) { scanf("%d",&a[i]); } sort(a,a+n); for(i=0; i<n; i++) { if(i!=0) { printf(" "); } printf("%d",a[i]); } printf("\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/Wing0624/p/4243808.html