@@ -0,0 +1,357 @@
+#!/usr/bin/env python%0A%0Anamefile = open('names.txt')%0A%0Adef namesum(name):%0A  capA = ord('A')%0A  return sum(%5Bord(n)-capA+1 for n in name%5D)%0A%0Anames = %5B%5D%0Afor lump in namefile.xreadlines():%0A  names.extend(%5Bname.strip('%22') for name in lump.split(',')%5D)%0A%0Anames.sort()%0Aord_pos_sum = 0%0Afor i,n in enumerate(names):%0A  ord_pos_sum += (i+1) * namesum(n)%0A%0Aprint ord_pos_sum%0A

add problem 22