#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a; cout<<uppercase<<hex<<a; //hex这个10转十六会默认转小写 //用uppercase可以切大写,完美解决远明的样例 return 0; }
使用您的 NWOJ 通用账户