F. 10 进制转 x 进制

    Type: RemoteJudge 1000ms 128MiB

10 进制转 x 进制

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.

题目描述

给定一个十进制整数 nn 和一个小整数 xx。将整数 nn 转为 xx 进制。对于超过十进制的数码,用 AB ... 表示。

输入格式

第一行一个整数 nn

第二行一个整数 xx

输出格式

输出仅包含一个整数,表示答案。

1000
2

1111101000

提示

【数据规模和约定】
保证 nn 不超过 10910^9xx 不超过 3636

测试赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2025-8-19 17:30
End at
2025-8-19 19:30
Duration
2 hour(s)
Host
Partic.
1