#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int n,m,i;
int l[1000];
cin>>n;
while(n--)
{
cin>>m;
for(i=0;i<m;i++)cin>>l[i];
sort(l,l+m);
for(i=0;i<m-1;i++)cout<<l[i]<<" ";
cout<<l[m-1];
cout<<endl;
}
return 0;
}
Saturday, 21 March 2009
HOJ ( acm.hdu.edu.cn ) 1040
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment