From 153f4f79b6ca4227d9430228528ffc23cbf07d36 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Wed, 23 Dec 2020 13:51:59 +0100 Subject: [PATCH] TIL: python has 1000 delimiters --- day23.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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