Problem

Source: Moldova EGMO TST 2024

Tags:



The plane is divided in $1\times1$ squares. In each square there is a real number such that it is the arithmetic mean of the four adjacent squares (with a common side). In a square there is $2024.$ Is it possible for $2024^{2024}$ to be written in another square if all the numbers are: a) nonnegative integers; b) integers?