#B4259. Matrix with Arithmetic Sequences
Matrix with Arithmetic Sequences
Matrix with Arithmetic Sequences
Given two positive integers $n$ and $m$, construct a matrix with $n$ rows and $m$ columns such that every row and every column forms an arithmetic sequence. It can be observed that if the element at the $i$-th row and $j$-th column is set to $i \times j$, the matrix satisfies the given condition.
Your task is to output this matrix.
inputFormat
The first line contains two integers and ().
outputFormat
Output lines, each containing space-separated integers representing the matrix. The element in the -th row and -th column should be .
sample
1 1
1
</p>