题解 | C++,最短代码,cin,cout自带#进制转换#
进制转换
https://www.nowcoder.com/practice/8f3df50d2b9043208c5eed283d1d4da6
#include <iostream> using namespace std; int main() { int a; while(cin>>hex>>a){ cout<<dec<<a<<endl; } }
进制转换
https://www.nowcoder.com/practice/8f3df50d2b9043208c5eed283d1d4da6
#include <iostream> using namespace std; int main() { int a; while(cin>>hex>>a){ cout<<dec<<a<<endl; } }
相关推荐