2026 AIME I Problem 11

Below is the professionally curated solution for Problem 11 of the 2026 AIME I, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2026 AIME I solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:optimizationabsolute valueextremal argument

Difficulty rating: 3160

11.

The integers from 11 to 6464 are placed in some order into an 8×88 \times 8 grid of cells with one number in each cell. Let ai,ja_{i,j} be the number placed in the cell in row ii and column j,j, and let MM be the sum of the absolute differences between adjacent cells. That is, M=i=18j=17(ai,j+1ai,j+aj+1,iaj,i).M = \sum_{i=1}^{8} \sum_{j=1}^{7} \left( |a_{i,j+1} - a_{i,j}| + |a_{j+1,i} - a_{j,i}| \right). Find the remainder when the maximum possible value of MM is divided by 1000.1000.

Solution:

View the grid as a graph whose 112112 edges join adjacent cells. Each edge contributes its larger endpoint value positively and its smaller one negatively, so M=vcvav,M = \sum_v c_v a_v, where ava_v is the entry in cell vv and cvc_v is the number of neighbors of vv with smaller entries minus the number with larger entries. Then cvdeg(v),|c_v| \le \deg(v), which is 44 for the 3636 interior cells, 33 for the 2424 edge cells, and 22 for the 44 corners, and vcv=0\sum_v c_v = 0 since each edge contributes +1+1 and 1.-1.

Because vcv=0,\sum_v c_v = 0, M=vcv(av652)vdeg(v)av652.M = \sum_v c_v \left(a_v - \tfrac{65}{2}\right) \le \sum_v \deg(v)\left|a_v - \tfrac{65}{2}\right|. By the rearrangement inequality this is maximized by pairing the 3636 values farthest from 652\frac{65}{2} (namely 111818 and 474764,64, whose deviations total 828828) with the interior cells, the next 2424 values (19193030 and 353546,46, totaling 192192) with the edge cells, and 31313434 (totaling 44) with the corners. Hence M4828+3192+24=3896.M \le 4 \cdot 828 + 3 \cdot 192 + 2 \cdot 4 = 3896.

Equality requires every cell holding a value at most 3232 to be smaller than all its neighbors and every value at least 3333 to be larger, which a checkerboard achieves: put 113232 on the black cells (111818 on interior blacks, 19193030 on edge blacks, 31313232 on black corners) and 33336464 on the white cells (33333434 on corners, 35354646 on edges, 47476464 in the interior). Every neighbor pair then compares white over black, so M=3896,M = 3896, and the answer is 3896mod1000=896.3896 \bmod 1000 = 896.

← Problem 10Full ExamProblem 12

Problem 11 in Other Years