This commit is contained in:
@@ -9,7 +9,7 @@ def part_1(input):
|
|||||||
tmp = count[0]
|
tmp = count[0]
|
||||||
count = [count[i+1] for i in range(8)]
|
count = [count[i+1] for i in range(8)]
|
||||||
count[6] += tmp
|
count[6] += tmp
|
||||||
count[8] = tmp
|
count.append(tmp)
|
||||||
result = sum(count)
|
result = sum(count)
|
||||||
print("Part 1 result:", result)
|
print("Part 1 result:", result)
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ def part_2(input):
|
|||||||
tmp = count[0]
|
tmp = count[0]
|
||||||
count = [count[i+1] for i in range(8)]
|
count = [count[i+1] for i in range(8)]
|
||||||
count[6] += tmp
|
count[6] += tmp
|
||||||
count[8] = tmp
|
count.append(tmp)
|
||||||
result = sum(count)
|
result = sum(count)
|
||||||
print("Part 2 result:", result)
|
print("Part 2 result:", result)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user