【例47.2】 转进制

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

用递归算法将一个十进制数X转换成任意进制数MMM16M≤16)。

输入格式

一行两个数,第一个十进制数XX,第二个为进制MM

输出格式

输出结果。

样例

31 16
1F

202402240000

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
22
Start at
2024-2-24 13:00
End at
2024-2-24 15:30
Duration
2.5 hour(s)
Host
Partic.
9