题解 | #数组逆置#(reverse秒了)
数组逆置
https://www.nowcoder.com/practice/b4f598480524493aae4686947fbf31dc
#include <iostream> #include <algorithm> using namespace std; int main() { string str; while(cin >> str) { reverse(str.begin(),str.end()); cout << str << endl; } return 0; }