摘要:
View Code /*Sample Input3olleh !dlrowm'I morf .udhI ekil .mca Sample Outputhello world!I'm from hdu.I like acm.HintRemember to use getchar() to read '\n' after the interger T, then you may use gets() to read a line and process it. */#include<iostream>using namespace std;int mai 阅读全文
摘要:
View Code #include <iostream>#include <algorithm>using namespace std;int main(){ int m,n,i,a[2000]; cin>>m; while(m--){ cin>>n; for(i=0;i<n;i++) { cin>>a[i]; } sort(a,a+n); for(i=0;i<n-1;i++) cout<<a[i]<<" "; cout<<a[i]<<endl;... 阅读全文