string tr10toK(ll num/*几进制*/, ll a)
{//10进制转K进制
string b = "";
do
{
if (a % num < 10)
b += (a % num) + '0';
else
b += (a % num) + 'A' - 10;
a /= num;
} while (a);
reverse(b.begin(), b.end());
return b;
}
string tr10toK(ll num/*几进制*/, ll a)
{//10进制转K进制
string b = "";
do
{
if (a % num < 10)
b += (a % num) + '0';
else
b += (a % num) + 'A' - 10;
a /= num;
} while (a);
reverse(b.begin(), b.end());
return b;
}