1
0

aoc 2017 (day 1-6)

This commit is contained in:
2020-01-13 12:57:50 +01:00
parent 3968a11fa6
commit 4da4c47915
28 changed files with 2164 additions and 50 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
import aoc
rawinput = aoc.read_input(4)
rcount = 0
for line in rawinput.splitlines():
words = list(map(lambda x: "".join(sorted(list(x))), line.split(' ')))
if len(set(words)) == len(words):
rcount += 1
print(rcount)