#P3581. Min Plus Convolution (Convex and Arbitrary)

Min Plus Convolution (Convex and Arbitrary)

4 5
3 1 0 3
5 1 3 3 2
8 4 2 1 3 3 2 5