Files
python/TangDou/XiTi/1093.cpp

18 lines
295 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
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;
}