Question description
There is a grid with rows and columns. The cell at the -th row from the top and -th column from the left, denoted as , contains the integer .
For all cells where and , find the following value:
- The sum of integers written in the cells that are in the same row or the same column as cell (including the cell itself).