Merge remote-tracking branch 'origin/master' into master
commit
f6d828c1a1
1
day_3.py
1
day_3.py
|
@ -25,7 +25,6 @@ for r, rucksack in enumerate(rucksacks):
|
||||||
rucksack_1prev = set(rucksacks[r-1])
|
rucksack_1prev = set(rucksacks[r-1])
|
||||||
rucksack_2prev = set(rucksacks[r-2])
|
rucksack_2prev = set(rucksacks[r-2])
|
||||||
(in_badge,) = rucksack_0prev & rucksack_1prev & rucksack_2prev
|
(in_badge,) = rucksack_0prev & rucksack_1prev & rucksack_2prev
|
||||||
print(in_badge)
|
|
||||||
if in_badge.islower():
|
if in_badge.islower():
|
||||||
badges_priority = badges_priority + ord(in_badge) - 96
|
badges_priority = badges_priority + ord(in_badge) - 96
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue