焚魂 @ 2019-07-07 22:42:40
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int length(int tx);
int main()
{
int a;
cin>>a;
if(a<0)
{
cout<<"-";
a=abs(a);
}
while(a%10==0)
a/=10;
int l=length(a);
for(int i=l;i>=1;i--)
{
cout<<a%10;
a/=10;
}
return 0;
}
int length(int tx)
{
int lena=0,tt=tx;
while(tt)
{
tt/=10;
lena++;
}
return lena;
}
by ldto @ 2019-10-11 13:17:06
你那么牛怎么不去做猪国杀呢!
by beyoursven @ 2020-01-12 14:02:04
@焚魂 666