# Don't understand programming question

#### JC724

##### Weaksauce
Programming Challenge:

Given a string s, compute the sum, each letter is an integer between 1 and 26, inclusive, and no two letters have the same value. (Uppercase 'F' is exactly as as lowercase 'f', for example.)

You're a student writing a report on the youth of this famous hacker. You found the string that Johnny considered most beautiful. What is the maximum possible of this string?

Input:
Your program should read lines from standard input. Each line is a string.
Output:
Print out the maximum for the string.
Test 1
Test Input

ABbCcc
Expected Output

152
Test 2
Test Input

Expected Output

491

I don't understand how they are getting the value for each letter. I originally thought if A = 1 and B = 1 then the sum would be 1 + 2 + 2 + 3 + 3 +3 but that is not 152. Then I thought maybe use the asc ii values of characters but then a and A would not be the same and either way it is much higher then 152.

#### BinarySynapse

##### [H]F Junkie
If A = 24, B = 25, and C = 26, then it sums to 152..

#### ChristianVirtual

##### [H]ard DCOTM x3
Can I get a A+ if I know the solution ?

But Ryan was faster ....

#### BinarySynapse

##### [H]F Junkie
Can I get a A+ if I know the solution ?

But Ryan was faster ....

Well, what I posted wasn't the solution, but a it was a big hint towards getting to it.

#### ChristianVirtual

##### [H]ard DCOTM x3
Well, what I posted wasn't the solution, but a it was a big hint towards getting to it.
Yes, if read in the right direction even more

#### JC724

##### Weaksauce
Thanks, this helped me a lot.