olymmath

NZ-NZMO 2025 Problem 5

    Alice plays a game with the Mad Hatter. The Mad Hatter will write two rows of numbers on a blackboard, each a distinct permutation of {1,2,…,n}\{1,2,\ldots ,n\} . On each move, Alice is allowed to swap the positions of the numbers aa and a+1a + 1 in the first row, for some 1≤a<n1 \leq a < n . What is the minimum number of moves Alice needs in order to guarantee that she can turn the first row of numbers into the second, regardless of the permutations the Mad Hatter writes?

    Dataset text NuminaMath olympiads. Quoted with source.

    Solutions

    No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

    Add a solution

    Locator nz-nzmo/2025/p5 · Tag AP116DA48J · Edit this page on GitHub · Keys: j next, k previous