2 条题解
- 
  1
#include <iostream> #include <stack> using namespace std; int main() { int num; cin >> num; if(num == 0){ cout << 0; return 0; } stack<char> s; while (num) { int temp = num % 16; if (temp < 10) { s.push(temp + '0'); } else { s.push(temp - 10 + 'A'); } num /= 16; } while (!s.empty()) { cout << s.top(); s.pop(); } return 0; } 
- 1
 
信息
- ID
 - 1212
 - 时间
 - 1000ms
 - 内存
 - 128MiB
 - 难度
 - 6
 - 标签
 - (无)
 - 递交数
 - 64
 - 已通过
 - 22
 - 上传者