题解 | 单组_字符串
单组_字符串
https://www.nowcoder.com/practice/e3a57b2ff6de4aefb82af98925df544e
#include <iostream>
#include <string>
#include <algorithm> //reverse
using namespace std;
int main() {
int n = 0;
cin >> n;
string s;
cin>> s;
reverse(s.begin(), s.end());
cout << s << endl;
}
查看12道真题和解析