题解在此
2025-08-18 16:17:00
发布于:浙江
0阅读
0回复
0点赞
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin>>n;
int cnt=abs(n);
int ans=0;
while (cnt){
ans=ans*10+cnt%10;
cnt/=10;
}
if (n<0){
cout<<'-';
}
cout<<ans;
return 0;
}
这里空空如也
有帮助,赞一个