涵塘听雨 @ 2016-08-16 15:24:20
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int n=0;
cin>>n;
if(n<0)
{cout<<"-";
n=-n;}
if(n==0)
{cout<<"0"<<endl;
return 0;}
for(;n>10;)
{if(n%10!=0)
cout<<n%10;
n=n/10;}
cout<<n;
return 0;
}
by 涵塘听雨 @ 2016-08-16 15:25:50
我想起来了..忘了502这一类的数字
by 涵塘听雨 @ 2016-08-16 15:35:45
已通过