User:Cscott/Advent Of Code 2023/Day 20

Part 1:

  • Example: 32000000
  • Example 2: 11687500
  • Full input: 818649769

Part 2:

  • Full input: 246313604784977

Source: Module:User:Cscott/Advent Of Code 2023/Day 20

(I'm using a lua script I wrote for lua-turtle to bundle up my modules for scribunto, so scroll all the way to the end to find the "real" code.)

Input:

Module interconnect diagram, generated with dot