0%

Problem 22


Problem 22


Names score

Using names.txt(right click and ‘Save Link/Target As…’), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this value by its alphabetical position in the list to obtain a name score.

For example, when the list is sorted into alphabetical order, COLIN, which is worth $3 + 15 + 12 + 9 + 14 = 53$, is the $938$th name in the list. So, COLIN would obtain a score of $938 \times 53 = 49714$.

What is the total of all the name scores in the file?


英文名得分

在文本文件names.txt中有五千多个英文名。首先将这些英文名按照字母序排序,然后计算出每个英文名的字母价值,乘以它在按字母序排序后的位置,得到的就是这个英文名的得分。

例如,按照字母序排序后,位于第$938$位的名字是COLIN,它的字母价值是$3 + 15 + 12 + 9 + 14 = 53$。因此,COLIN这个英文名的得分是$938 \times 53 = 49714$。

上述文本文件中,所有英文名的得分之和是多少?