A29795.蒙圈游戏
2026-05-05 11:26:45
发布于:广东
3阅读
0回复
0点赞
先上代码:
#include<bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
cout << stoi(s, nullptr, 2) << endl;
cout << stoi(s, nullptr, 8) << endl;
cout << stoi(s, nullptr, 16) << endl;
return 0;
}
不懂stoi()用法的点这里->here
这里空空如也




有帮助,赞一个