18 lines
295 B
C++
18 lines
295 B
C++
#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;
|
|
}
|