Update day 6 solution
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-12-06 07:32:21 +01:00
parent f906aa5487
commit 31ad298e22

View File

@@ -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)