Translated from https://www.ioi-jp.org/joi/2020/2021-ho/2021-ho-t4-review.pdf
- You are given a simple undirected graph where the edges have colors.
- When giving instructions to the robot, you can only pick edges such that there's no other edge with the same color adjacent to the node where the robot is.
- Before giving the robot instructions, you want to paint the edges such that the robot can reach from node 1 to node N.
- Each edge has a cost associated with it; minimize the total cost of painting the edges.