Problem 3572 · Medium

Maximize Y-Sum by Picking a Triplet of Distinct X-Values

Keep the largest y for each x value, then add the three largest of those so that all three x values differ.

Open the interactive visualisation