void calc(int n)
{
int i = 3;
n%=MAX;
int a = n/36;
int b = n%36;
while(i!=-1)
{
if(0<=b&&b<=9)
r[i--]=b+'0';
else
r[i--]=b-10+'A';
b = a%36;
a = a/36;
}
printf("%s\n",r);
}
网友评论