A. 【例47.2】 转进制

    Type: Default 1000ms 256MiB

【例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.

Description

Convert a decimal number XX to any base MM (M16M≤16) using a recursive algorithm.

Input Format

One line containing two numbers: the first is the decimal number XX, and the second is the target base MM.

Output Format

Output the converted number.

Sample

31 16
1F

20251108 B班作业(6)

Not Claimed
Status
Done
Problem
1
Open Since
2025-11-8 0:00
Deadline
2025-11-16 23:59
Extension
24 hour(s)