题解 | 单组_字符串
单组_字符串
https://www.nowcoder.com/practice/e3a57b2ff6de4aefb82af98925df544e
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string s;
int n;
cin>>n;
cin>>s;
reverse(s.begin(),s.end());
cout<<s;
}
// 64 位输出请用 printf("%lld")
查看16道真题和解析