Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82130 sh25_shenpy 进制转换 C++ 解答错误 0 MS 244 KB 294 2026-01-10 17:19:52

Tests(0/5):


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


测评信息: