大佬求救 全RE
查看原帖
大佬求救 全RE
1604276
handless楼主2024/12/16 11:05
#include <iostream>
#include <string>
using namespace std;

string str("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");

void jzzh(int n,int x)
{
    if(n>=x)
    {
        jzzh(x/n,x);
    }
    cout << str[x%n];
}

int main()
{
    int n,x;
    cin >> n >> x;
    jzzh(n,x);
    return 0;
}
2024/12/16 11:05
加载中...