<s> class Solution : <EOL> def titleToNumber ( self , s ) : <EOL> result = <NUM_LIT:0> <EOL> for i in xrange ( len ( s ) ) : <EOL> result *= <NUM_LIT> <EOL> result += ord ( s [ i ] ) - ord ( '<STR_LIT:A>' ) + <NUM_LIT:1> <EOL> return result <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> print Solution ( ) . titleToNumber ( "<STR_LIT>" ) </s>
