题解 | 单组_字符串

单组_字符串

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")

全部评论

相关推荐

有点心碎的杨桃很想润:我在美团,小道消息今年秋招之后美团可能就完全不会招日常实习了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务