TIL: python has 1000 delimiters
This commit is contained in:
parent
3a396c8c47
commit
153f4f79b6
6
day23.py
6
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user