as easy as A+B
#include<stdio.h>
#include<algorithm>
using namespace std;
int A[100000];
int main( )
{
int N;
scanf("%d",&N);
while(N--)
{
int i,p;
scanf("%d",&p);
for(i=0;i<p;i++)
scanf("%d",&A[i]);
sort(A,A+p);
for(i=0;i<p;i++)
printf(i?" %d":"%d",A[i]);
puts("");
}
return 0;
}
早上一来就受打击,竟然在for循环后面加了个分号。。搞得我郁闷啊。
posted on 2011-04-30 08:03 more think, more gains 阅读(221) 评论(0) 收藏 举报
浙公网安备 33010602011771号