This commit is contained in:
@@ -37,10 +37,6 @@ def part_2(input):
|
|||||||
code['7'] = d
|
code['7'] = d
|
||||||
elif len(d) == 7:
|
elif len(d) == 7:
|
||||||
code['8'] = d
|
code['8'] = d
|
||||||
if '1' not in code:
|
|
||||||
code['1'] = ''.join(set(code['4']).intersection(code['7']))
|
|
||||||
if '8' not in code:
|
|
||||||
code['8'] = 'abcdefg'
|
|
||||||
for d in inp:
|
for d in inp:
|
||||||
if len(d) == 6:
|
if len(d) == 6:
|
||||||
if len(''.join(set(code['4']).intersection(d))) == 4:
|
if len(''.join(set(code['4']).intersection(d))) == 4:
|
||||||
|
|||||||
Reference in New Issue
Block a user