Problem 3574 · Hard
For each subarray, track the reachable (doublings used, gcd) pairs and keep the best length times gcd.
Open the interactive visualisation