题解 | #字符逆序#
字符逆序
https://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b
// HJ106 字符逆序.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<iostream> #include<bits/stdc++.h> using namespace std; int main() { string s; while (getline(cin, s)) { reverse(s.begin(), s.end()); cout << s << endl; } return 0; }