410437: GYM104021 I Base62
Memory Limit:512 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
I. Base62time limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard output
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 $$$2$$$ to $$$62$$$. The symbols '0' – '9' 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 $$$z$$$ in base $$$x$$$ into base $$$y$$$.
InputThe input contains three integers $$$x, y~(2 \le x, y \le 62)$$$ and $$$z~(0 \le z < x^{120})$$$, where the integer $$$z$$$ is given in base $$$x$$$.
OutputOutput the integer $$$z$$$ in base $$$y$$$.
ExampleInput16 2 FBOutput
11111011