diff --git a/day23.py b/day23.py index 241633f..716ba72 100644 --- a/day23.py +++ b/day23.py @@ -63,9 +63,9 @@ def part1(test_mode=False): def part2(test_mode=False): my_input = aoclib.getInputAs2DArray(day=DAY, return_type=int, test=test_mode) - cups, current_cup = buildLinkedListDict(my_input[0] + list(range(max(my_input[0]) + 1, 1000001))) + cups, current_cup = buildLinkedListDict(my_input[0] + list(range(max(my_input[0]) + 1, 1_000_001))) - for _ in range(10000000): - cups, current_cup = play(cups, current_cup, 1000000) + for _ in range(10_000_000): + cups, current_cup = play(cups, current_cup, 1_000_000) return cups[1].right.label * cups[1].right.right.label