基本思想:
无;
关键点:
无;
#include<iostream> #include<vector> #include<algorithm> #include<string> #include<cmath> #include<set> using namespace std; int main() { string s; while (cin >> s) { for (int i = s.size() - 1; i >= 0; i--) cout << s[i]; cout << endl; } return 0; }
原文地址:https://www.cnblogs.com/songlinxuan/p/12386406.html
时间: 2024-10-10 17:48:43