| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 82130 | sh25_shenpy | 进制转换 | C++ | Wrong Answer | 0 MS | 244 KB | 294 | 2026-01-10 17:19:52 |
#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; }