#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string str; cin >> str; reverse(str.begin(), str.end()); cout << str; return 0; } // 64 位输出请用 printf("%lld") 一开始使用了.length用来反着打印,也可以,今天重拾c++,还是c++的库好用啊,cin和cout的开口整反了给...