点击打开链接http://sdnuacm.sinaapp.com/problem.php?id=1044
#include<stdio.h>
int main()
{
long n;
int m,i=0;
int num[64]={0};
scanf("%d%d",&n,&m);
while(n)
{
num[i++]=n%m;
n/=m;
}
for(i=i-1;i>=0;i--)
printf("%d",num[i]);
printf("\n");
return 0;
}