题解 | #字符逆序# STL

字符逆序

https://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b

#include <algorithm>
#include <iostream>
#include <bits/stdc++.h>
#include <ostream>
#include <string>
using namespace std;

int main() {
    string str;
    getline(cin, str);
    reverse(begin(str), end(str));
    cout << str << endl;
}
// 64 位输出请用 printf("%lld")

全部评论

相关推荐

10-29 15:51
嘉应学院 Java
后端转测开第一人:你把简历的学历改成北京交通大学 去海投1000份发现基本还是没面试
点赞 评论 收藏
分享
11-11 16:40
已编辑
门头沟学院 人工智能
不知道怎么取名字_:这个有点不合理了,相当于已经毕业了,但还是没转正,这不就是白嫖
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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