logo AlgoBeat OnlineJudge
登录 注册

#217589. [ICPC 2019 Yinchuan R] Base62

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

As we already know, base64 is a common binary-to-text encoding scheme. Here we define a special series of positional systems that represent numbers using a base (a.k.a. radix) of to . The symbols '' -- '' represent zero to nine, and 'A' -- 'Z' represent ten to thirty-five, and 'a' -- 'z' represent thirty-six to sixty-one. Now you need to convert some integer in base into base .

输入格式

The input contains three integers and , where the integer is given in base .

输出格式

Output the integer in base .

样例

样例输入 1

16 2 FB

样例输出 1

11111011