题解 | #进制转换#
进制转换
https://www.nowcoder.com/practice/8f3df50d2b9043208c5eed283d1d4da6
#include <iostream>
#include <sstream>
using namespace std;
int main() {
string hexNum ,input;
stringstream ss;
unsigned int decNum;
cin >> input;
hexNum = input.substr(2);
ss << hex << hexNum;
ss >> decNum;
cout << decNum << endl;
return 0;
}


360集团公司氛围 395人发布