This is simply a human work simulation - exactly reproducing how you do it by hand. Nothing special. You'd better put each step on a paper to make everything clear. Reference: http://blog.csdn.net/rappy/article/details/1737671
My code passed all 6 test cases. Yay..
// 429 #include <iostream> #include <cstring> #include <vector> #include <cmath> using namespace std; char GetDigitChar(int val) { if(val >= 0 && val <= 9) return val + '0'; else if(val >= 10 && val < 36) return val - 10 + 'A'; return '