#K62582. Base Conversion Challenge
Base Conversion Challenge
Base Conversion Challenge
You are given a number in an arbitrary base and you must convert it to a different target base. Both bases will be between 2 and 36 inclusive. The valid digits for bases up to 36 are defined as: (0, 1, 2, \dots, 9, A, B, \dots, Z). This problem tests your understanding of numeral systems and conversion techniques. Input is received via standard input (stdin) and output should be written to standard output (stdout).
inputFormat
The input consists of three tokens separated by spaces. The first token is a string representing the number to be converted, followed by two integers: the original base (base_from) and the target base (base_to). For example: 255 10 16
.
outputFormat
Output the converted number as a string. For the above example, the expected output is FF
.## sample
255 10 16
FF