1 #include <bits/stdc++.h>
2 using namespace std;
3 int main()
4 {
5 string a;
6 while(getline(cin,a)){
7 reverse(a.begin(),a.end());
8 cout<<a<<endl;
9 }
10 return 0;
11 }
带有空格字符串的字符逆序
阅读 10
2022-05-25
1 #include <bits/stdc++.h>
2 using namespace std;
3 int main()
4 {
5 string a;
6 while(getline(cin,a)){
7 reverse(a.begin(),a.end());
8 cout<<a<<endl;
9 }
10 return 0;
11 }
相关推荐
精彩评论(0)