题解 | #字符逆序# 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")

全部评论

相关推荐

不愿透露姓名的神秘牛友
昨天 11:16
点赞 评论 收藏
分享
点赞 评论 收藏
分享
05-26 10:24
门头沟学院 Java
qq乃乃好喝到咩噗茶:其实是对的,线上面试容易被人当野怪刷了
找工作时遇到的神仙HR
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-09 12:05
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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