标签:div ace pad height center and question .net rip
As Easy As A+B
2 3 2 1 3 9 1 4 7 2 5 8 3 6 9
1 2 3 1 2 3 4 5 6 7 8 9
#include<cstdio> #include<algorithm> using namespace std; int main(){ int t,n; scanf("%d",&t); while(t--){ scanf("%d",&n); int f[1010]; for(int i=0;i<n;i++) scanf("%d",&f[i]); sort(f,f+n); for(int i=0;i<n;i++){ if(i!=0) printf(" "); printf("%d",f[i]); } printf("\n"); } return 0; }
HDU 1040.As Easy As A+B【排序】【如题(水!水!水!)】【8月24】
标签:div ace pad height center and question .net rip
原文地址:http://www.cnblogs.com/yangykaifa/p/7073951.html