Write a program to convert numbers in one ba
There are 62 different digits:
{ 0-9,A-Z,a-z }
HINT: If you make a sequence of ba
as the input to the next, when you get back to the original ba
number.
The first line of input contains a single positive integer. This is the number of lines that
follow. Each of the following lines will have a (decimal) input ba
a (decimal) output ba
Both the input ba
That is (in decimal) A = 10, B = 11, ……, Z = 35, a = 36, b = 37, ……, z = 61 (0-9 have their usual meanings).(字符串长度范围在1-1000)
The output of the program should consist of three lines of output for each ba
conversion performed. The first line should be the input ba
a space then the input number (as given expressed in the input ba
The second output line should be the output ba
the input number (as expressed in the output ba
8
62 2 abcdefghiz
10 16 1234567890123456789012345678901234567890
16 35 3A0C92075C0DBF3B8ACBC5F96CE3F0AD2
35 23 333YMHOUE8JPLT7OX6K9FYCQ8A
23 49 946B9AA02MI37E3D3MMJ4G7BL2F05
49 61 1VbDkSIMJL3JjRgAdlUfcaWj
61 5 dl9MDSWqwHjDnToKcsWE1S
5 10 42104444441001414401221302402201233340311104212022133030
62 abcdefghiz
2 11011100000100010111110010010110011111001001100011010010001
10 1234567890123456789012345678901234567890
16 3A0C92075C0DBF3B8ACBC5F96CE3F0AD2
16 3A0C92075C0DBF3B8ACBC5F96CE3F0AD2
35 333YMHOUE8JPLT7OX6K9FYCQ8A
35 333YMHOUE8JPLT7OX6K9FYCQ8A
23 946B9AA02MI37E3D3MMJ4G7BL2F05
23 946B9AA02MI37E3D3MMJ4G7BL2F05
49 1VbDkSIMJL3JjRgAdlUfcaWj
49 1VbDkSIMJL3JjRgAdlUfcaWj
61 dl9MDSWqwHjDnToKcsWE1S
61 dl9MDSWqwHjDnToKcsWE1S
5 42104444441001414401221302402201233340311104212022133030
5 42104444441001414401221302402201233340311104212022133030
10 1234567890123456789012345678901234567890