Skip to content

P2774

Step 0

A standard DP is non-applicable. We need a boundary

Step 1

We need to enforce the constraint that no 2 adjacent cells can be chosen at once.

Can we split a block into 4? We can route the flow so they collide

1 2 4 3 4 7 3 13

0 1 2 1 5 8 5 10