Problem 3560 · Easy

Find Minimum Log Transportation Cost

Two logs of lengths n and m must ride on three trucks, one piece per truck, each piece at most k long. Cutting a log into pieces a and b costs a times b; find the cheapest total cost.

Open the interactive visualisation