This commit is contained in:
basicbonobo 2023-12-15 06:19:36 +01:00
parent 3e95018ebb
commit 133fc9a5f6
3 changed files with 10 additions and 0 deletions

8
fünfzehn.py Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env python3
from useful import *
def hush(s):
return reduce(lambda a, b: (a+ord(b))*17%256, s, 0)
print(sum(hush(s) for s in open(0).read().strip().split(',')))

1
input15 Normal file

File diff suppressed because one or more lines are too long

1
test15 Normal file
View File

@ -0,0 +1 @@
rn=1,cm-,qp=3,cm=2,qp-,pc=4,ot=9,ab=5,pc-,pc=6,ot=7