Problem 1799 · Hard
Pair all values to maximize the sum of operation-index times pair GCD.
Open the interactive visualisation