TIL: python has 1000 delimiters

This commit is contained in:
Stefan Harmuth 2020-12-23 13:51:59 +01:00
parent 3a396c8c47
commit 153f4f79b6

View File

@ -63,9 +63,9 @@ def part1(test_mode=False):
def part2(test_mode=False): def part2(test_mode=False):
my_input = aoclib.getInputAs2DArray(day=DAY, return_type=int, test=test_mode) 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): for _ in range(10_000_000):
cups, current_cup = play(cups, current_cup, 1000000) cups, current_cup = play(cups, current_cup, 1_000_000)
return cups[1].right.label * cups[1].right.right.label return cups[1].right.label * cups[1].right.right.label