Fatal Error · Extreme CodeFree
Where Should It Bend?
A long paper dragon dances in the parade. Hinges between its panels split it into exactly K sections, and a section is as stiff as the square of its length. Where should the hinges go?
Find the least total stiffness with exactly K sections.
The number must be exactly right.
N K. Line 2: the lengths of panels 1 to N, head to tail.K sections.K ≤ N ≤ 25 000; 1 ≤ length ≤ 1 0008 3 5 1 1 1 1 6 3 4
162
Sign in to play. It is free.
Sign in