求助大佬
查看原帖
求助大佬
1228825
msldfwsg楼主2023/12/30 18:52
#include<bits/stdc++.h>
using namespace std;
int n,x;
char p[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
int jz(int a,int b)
{
	int e;
	e=a%b;
	a=a/b;
	if(a!=0){
		jz(a,b);
	}
	cout<<p[e];
}
int main()
{
	cin>>n>>x;
	jz(n,x);
} 

不知道为什么过不了,有没有大佬看一下,在线等,挺急的!

2023/12/30 18:52
加载中...