84 vector<unsigned short> input = vector<unsigned short>();
85 vector<unsigned short> ans = vector<unsigned short>();
86 queue<unsigned short> quotient = queue<unsigned short>();
87 for(
auto i = x.begin(); i != x.end(); i++) {
89 input.push_back(*i -
'0');
90 }
else if(isupper(*i)) {
91 input.push_back(*i -
'A' + 10);
95 unsigned int current = 0;
96 quotient = queue<unsigned short>();
97 for(
auto i = input.begin(); i != input.end(); i++) {
100 quotient.push(current / n);
103 while(!quotient.empty() && quotient.front() == 0) {
106 ans.push_back(current);
107 input = vector<unsigned short>(quotient.size());
108 for(
unsigned int i = 0; i < input.size(); i++) {
109 input[i] = quotient.front();
112 }
while(!input.empty());
113 for(
auto i = ans.rbegin(); i != ans.rend(); i++) {
117 cout << (char) (*i - 10 +
'a');