2 条题解
-
0
// https://dashoj.com/p/95 #include <bits/stdc++.h> using namespace std; int s, base; int main() { cin >> s >> base; char digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string result; while (s != 0) { result.push_back(digits[s % base]); s /= base; } reverse(result.begin(), result.end()); cout << result << endl; return 0; }
信息
- ID
- 95
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 4
- 标签
- 递交数
- 273
- 已通过
- 125
- 上传者