Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
118342 曾煦翔 十进制转d进制 C++ 通过 100 0 MS 252 KB 286 2023-12-30 08:12:25

Tests(10/10):


#include<bits/stdc++.h> using namespace std; const string s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int n , m; void work(int x) { if(x / m == 0) { cout << s[x]; return; } work(x / m); cout << s[x % m]; } int main() { cin >> n >> m; work(n); return 0; }


测评信息: