#include using namespace std; int main() { string s; getline(cin, s); string temp; stringstream ss(s); //按空格分割 while (ss >> temp) { reverse(temp.begin(), temp.end()); cout << temp<<" " ; } return 0; }