CF762D Maximum path
Description
You are given a rectangular table $ 3×n $ . Each cell contains an integer. You can move from one cell to another if they share a side.
Find such path from the upper left cell to the bottom right cell of the table that doesn't visit any of the cells twice, and the sum of numbers written in the cells of this path is maximum possible.
Input Format
N/A
Output Format
N/A
Explanation/Hint
The path for the first example:
The path for the second example:
