大神求救
  • 板块灌水区
  • 楼主wangyuxi008
  • 当前回复2
  • 已保存回复2
  • 发布时间2023/12/17 20:59
  • 上次更新2023/12/18 10:05:31
查看原帖
大神求救
773346
wangyuxi008楼主2023/12/17 20:59

哪位大神帮我看看我哪儿错了B3619

#include<bits/stdc++.h>
using namespace std;
const string R="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int x=;
void tox(int n){
	if(n/x==0){
		cout<<R[n];
		return;
	}
	tox(n/x);
	cout<<R[n%x];
}

int main(){
	int n;
	cin>>n>>x;
	tox(n);
 	return 0;
}
2023/12/17 20:59
加载中...