P9767 [ROIR 2021] Coloring (Day 2)
Background
**Translated from [ROIR 2021](http://neerc.ifmo.ru/school/archive/2020-2021.html) Day2 T3 [Хорошие раскраски](http://neerc.ifmo.ru/school/archive/2020-2021/ru-olymp-regional-2021-day2.pdf)**。
Description
Color an $n\times m$ matrix using $c$ colors. It is required that for any $1\le x_1
Input Format
One line with three integers $n,m,c$.
Output Format
Output $n$ lines. Each line contains $m$ integers in the range $1\sim c$, representing the color used for each cell.
Explanation/Hint
- For $25\%$ of the testdata, $c=2$。
- For the other $75\%$ of the testdata, $c=3$。
- For $100\%$ of the testdata, $2\le n,m\le 10$ and $2\le c\le 3$。
Note: The attachment is the Special Judge for this problem, for debugging.
Translated by ChatGPT 5