Problem

Source: 44th International Tournament of Towns, Junior O-Level P1, Fall 2022

Tags: Tournament of Towns, combinatorics



Is it possible to arrange $36$ distinct numbers in the cells of a $6 \times 6$ table, so that in each $1\times 5$ rectangle (both vertical and horizontal) the sum of the numbers equals $2022$ or $2023$?