题目1039:Zero-complexity Transposition
http://ac.jobdu.com/problem.php?pid=1039
View Code
1 #include<iostream> 2 #include<algorithm> 3 #include<string> 4 using namespace std; 5 6 int main() 7 { 8 int n,i; 9 10 while(cin>>n) 11 { 12 string s,temp; 13 for(i=0;i<n;++i) 14 { 15 cin>>s; 16 if(i==n-1) 17 temp=s+temp; 18 else 19 temp=" "+s+temp; 20 } 21 cout<<temp<<endl; 22 23 } 24 return 0; 25 }


浙公网安备 33010602011771号