#P1143. 进制转换
进制转换
Description
Write a program to convert a number between two different bases.
Input Format
There are three lines. The first line is a positive integer denoting the base of the given number, . The second line is a base- number; if , use uppercase letters for digits , and the decimal value of this base- number does not exceed . The third line is also a positive integer denoting the target base, .
Output Format
A single positive integer, which is the number in base after conversion.
16
FF
2
11111111
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号