wayne_lee @ 2017-02-16 19:05:40
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j;
long int n;
scanf("%d",&n);
if(n<0)
{
printf("-");
n*=-1;
}
while(n%10==0)
{
n/=10;
}
while(1)
{
if(n==0)
break;
printf("%d",n%10);
n/=10;
}
}
by lzusa @ 2017-02-16 20:48:18
用longlong就可以了
by lzusa @ 2017-02-16 20:56:44
你的输出要用"ld"