Problem 3574 · Hard

Maximize Subarray GCD Score

For each subarray, track the reachable (doublings used, gcd) pairs and keep the best length times gcd.

Open the interactive visualisation