MathDB

2022 Japan TST

Part of Japan TST

Subcontests

(4)
8
1

The intrigue of the chairman

Let m3m\geq 3 be an odd integer and n3n\geq 3 be an integer. For each integer ii with 1im1\leq i\leq m, let ai,1,ai,2,,ai,na_{i,1},a_{i,2},\dots,a_{i,n} be a permutation of 1,2,,n1,2,\dots,n. The chairman and mm team leaders (team leader 1,1, team leader 2,,2,\dots, team leader mm) have gathered to hold the jury meeting to choose the problems for this year's IMO. There are nn shortlisted problems (problem 1,1, problem 2,,2,\dots, problem nn) submitted to the meeting. Each team leader has a positive integer score of impression between 11 and nn for each problem, and initially team leader ii has a score of ai,ja_{i,j} for problem jj. The chairman can repeatedly perform the following operation:
Choose an integer ii with 1im1\leq i\leq m and integers j,kj,k with 1j,kn1\leq j,k\leq n such that the difference between the scores of problem jj and problem kk for team leader ii is 11, and swap the scores of problem jj and problem kk for team leader ii.
Regardless of the mnmn integers ai,ja_{i,j} (1im1\leq i\leq m, 1jn1\leq j\leq n), find the minimum non-negative integer LL such that the chairman can make the following condition true by performing the operation at most LL times:
For any two distinct integers xx and yy with 1x,yn1\leq x,y\leq n, there exists a sequence of integers p1,p2,,psp_1,p_2,\dots,p_s with s2s\geq 2 such that p1=xp_1=x, ps=yp_s=y, and each pip_i with 1is1\leq i\leq s is an integer between 11 and nn, and for all integers tt with 1ts11\leq t\leq s-1, the number of team leaders who prefer problem ptp_t to problem pt+1p_{t+1} is at least m+12\frac{m+1}{2}.