logo AlgoBeat OnlineJudge
登录 注册

题解

作者: _ZXY_  ·  发布于 2026-06-07 12:14:16  ·  最后修改于 2026-06-07 12:50:38
已通过
审核员:AlgoBeat 官方账号 · 2026-06-07 12:50:38

STL 有一个函数 reverse,他可以实现对数组的翻转。

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin>>s;
    reverse(s.begin(),s.end());
    cout<<s;
}

暂无评论

登录 后即可评论。