Skip to content

IOI 2025 Triple Peaks

Step 1

We can iterate over all the possible permutations. There is only 1 the is non-trivial. The problem can be transformed into a 3-loop counting problem.