2024(5): I was too quick to dismiss this for another time :D
I quickly realised what I had done.
This commit is contained in:
@ -45,7 +45,7 @@ def is_update_legal(update, rules) -> bool:
|
||||
return True
|
||||
|
||||
def middle_page_num(update) -> int:
|
||||
return len(update) // 2
|
||||
return update[len(update) // 2]
|
||||
|
||||
if __name__ == "__main__":
|
||||
rules, updates = load_input()
|
||||
|
||||
Reference in New Issue
Block a user