Problem 3693 · Medium
Shortest-path DP over steps where each jump of length d costs the step cost plus d squared.
Open the interactive visualisation