【算法基础】进制转换

一、X进制转十进制

(一)Question

1. 问题描述

在这里插入图片描述

2. Input

第一行一个整数 x; 第二行一个字符串 S。

3. Output

输出仅包含一个整数,表示答案。

4. Sample Input

16
7B

5. Sample Output

123

(二)题解

#include <bits/stdc++.h>
using

猜你喜欢

转载自blog.csdn.net/m0_51339444/article/details/131716253
今日推荐