Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78006 sh25_shenpy 进制转换 C++ 解答错误 0 MS 256 KB 297 2025-12-26 15:15:30

Tests(0/5):


#include<bits/stdc++.h> #define ll long long using namespace std; string c="0123456798ABCDEF";//对应字符。 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; }


测评信息: