Problem 4010 · Easy

Maximize Pair Strength Using GCD

Try every pair and score it as the product divided by the square of its gcd, which equals the product of the two quotients by the gcd.

Open the interactive visualisation