Day 14 (removed unnecessary string join)

This commit is contained in:
Sebastian Seedorf
2020-12-14 10:04:07 +01:00
parent 8f140f8e00
commit 425d6ee740

View File

@@ -27,7 +27,7 @@ for line in lines:
match = regex_mem.match(line)
addr, dec = list(map(int, match.groups()))
bin = format(addr, '036b')
res = "".join((a if b == '0' else b) for a, b in zip(bin, mask))
res = [(a if b == '0' else b) for a, b in zip(bin, mask)]
for x in combination(res):
mem[x] = dec