#include<iostream>
#include<string>
using namespace std;
int main()
{
int a;
bool fu=false;
cin>>a;
while(a%10==0)
{
a/=10;
}
if(a<0)
{
a=-a;
fu=true;
}
string strTest=to_string(a);
if(fu)
{
cout<<"-";
}
for(int i=strTest.size();i>=0;i--)
{
cout<<strTest[i];
}
}
在自己的dev c++上测试都是成功的,但是交上去就是一分没有,测试发现输入的数据在十位数以上才会出错,但是题目的数据范围在十位数以内呀,求大佬解惑!!!