0 0 No counting system counting system conversion

https://codeforces.com/problemset/problem/1/B
this problem also occurs in the string hash feeling, because under normal circumstances will be mapped to the A 1 instead of 0 
method: eg ABZ set formula 1 * 2 + 2 * 26 ^ 26 ^ 26 ^ 26 * 1 + 0 (for yes, 26 * 26 ^ 0) is the first of several this thing is

26 to 754 hexadecimal number is represented as 031 (low to high) then the position of all 0, up by 1, the position number = + 26 positions on a scan Save again from low to high        
031 becomes i.e. into corresponding letters as is the ZBA 2621

Guess you like

Origin www.cnblogs.com/spzeno/p/11297298.html