题解 | #反序输出#
反序输出
https://www.nowcoder.com/practice/171278d170c64d998ab342b3b40171bb
#include<iostream> using namespace std; #include<algorithm> int main(void) { string s; while(cin >> s) { reverse(s.begin(),s.end()); cout << s << endl; } return 0; }