60pts???
查看原帖
60pts???
785767
44i11楼主2023/11/26 14:39
#include<bits/stdc++.h>
#define ll long long
using namespace std;
string c="0123456798ABCDEFGHIJKLMNOPQRSTUVWXYZ";
void f(int x,int m){
	if(x/m) f(x/m,m);
	cout<<c[x%m];
}
int main(){
	int x,m;
	cin>>x>>m;
	f(x,m);
	return 0;
}
2023/11/26 14:39
加载中...