Finished 23, pretty darn slow and ugly solution

This commit is contained in:
2020-04-14 00:37:45 +02:00
parent e52795b032
commit 02dea31c31
2 changed files with 63 additions and 0 deletions

View File

@@ -2,6 +2,9 @@ import os
import math
import numpy as np
# Calculate the sum of all scores of the names in the textfile, where
# the score is the product of the sorted position and
# sum of alphabetic values of its letters
def charScore(c):
assert len(c) == 1