afterward

导航

 

2012年7月29日

摘要: 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 阅读全文
posted @ 2012-07-29 23:02 afterward 阅读(298) 评论(0) 推荐(0) 编辑
 
摘要: 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;... 阅读全文
posted @ 2012-07-29 17:48 afterward 阅读(163) 评论(0) 推荐(0) 编辑