呜呜呜
查看原帖
呜呜呜
991587
zhoujunchen楼主2023/10/3 17:20
#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/10/3 17:20
加载中...