题解 | #反序输出#
反序输出
http://www.nowcoder.com/practice/171278d170c64d998ab342b3b40171bb
#include <bits/stdc++.h> using namespace std; int main() { string str; while (cin >> str) { for (int i = str.size()-1; i >= 0 ; --i) { cout << str[i]; } cout << endl; } return 0; }