Given a decimal number, convert it to base rrr (1<r≤91 < r \le 91<r≤9).
One line containing two integers n,rn, rn,r (n<10000n < 10000n<10000).
One line containing a single integer, the correct answer.
100 2
1100100
注册一个 HiJudge 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 HiJudge 通用账户