Problem 3038 · Easy

Maximum Number of Operations With the Same Score I

Fix the score from the first pair, then take pairs from the front while each one sums to that score.

Open the interactive visualisation