#abc220b. B - Base K
B - Base K
Score : points
问题描述
你已知两个整数 和 ,它们以 进制表示。
请输出 转换为十进制后的结果。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given integers and , in base .
Print in decimal.
Notes
For base- representation, see Wikipedia's article on Positional notation.
Constraints
- and are in base- representation.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
2
1011 10100
Sample Output 1
220
1011
in base corresponds to in base .
10100
in base corresponds to in base .
We have , so print .
Sample Input 2
7
123 456
Sample Output 2
15642
123
in base corresponds to in base .
456
in base corresponds to in base .
We have , so print .
update @ 2024/3/10 09:43:03