#include<iostream>
#include<cstdio>
using namespace std;
int t;
int x;
char tmp[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
void work(int a,int b)
{
if(a/b!=0)
work(a/b,b);
cout<<tmp[a%b];
}
int main()
{
int n,m;
scanf("%d%d",&n,&m);
work(n,m);
return 0;
}100'
1161:转进制
猜你喜欢
转载自blog.csdn.net/qq_42552468/article/details/81229210
今日推荐
周排行