#171. Excel Sheet Column Number 题目链接 int titleToNumber(char* s) { int i = 0; int line = 0; for(i; s[i]!='\0'; i++) { line = line * 26 + s[i]-'A'+1; } return line; }