Turkish Project Euler Problem 22 Name Scores
Turkish Project Euler Problem 22 Name Scores
Download the names.txt file (contains over 5,000 names and is 46KB—right click and choose 'Save link as…') and sort it alphabetically. Then, for each name, sum the alphabetical value of every letter, multiply this value by the name's position in the list, and find the score of the name.For example, when the list is sorted alphabetically, the name COLIN will be at position 938 and the total value of its letters will be 3 + 15 + 12 + 9 + 14 = 53. Thus, COLIN will get a score of 938 × 53 = 49714.
What is the total of all name scores in the file?


Yorum Gönder