1
0
www.mikescher.com/www/statics/aoc/2017/04_solution-2.py

15 lines
261 B
Python
Raw Normal View History

2020-01-13 12:57:50 +01:00
#!/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)