传说中的代码
2025-06-22 11:24:47
发布于:广东
4阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int n,c;
int main() {
cin >> c>>n;
string s;
while(n!=0){
if(n%c<10)s=(char)(n%c+'0')+s;
else s=(char)(n%c+55)+s;
n/=c;
}
cout<<s;
return 0;
}
这里空空如也
有帮助,赞一个