题解
2024-09-12 21:49:08
发布于:江苏
1阅读
0回复
0点赞
#include<bits/stdc++.h>
#define ll long long //防伪标识
#define MAXN 1005
#define maxn 10005
#define MAXM 10000
#define maxm 1000005
#define Y1 "YES"<<endl
#define N1 "NO"<<endl
#define Y2 "yes"<<endl
#define N2 "no"<<endl
#define Y3 "Yes"<<endl
#define N3 "No"<<endl
using namespace std;
string n;
int main(){
cin>>n;
for(int i = n.size()-1;i>=0;i--)
cout<<n[i]<<" ";
return 0;
}
这里空空如也
有帮助,赞一个