#P9767. [ROIR 2021] 染色 (Day 2)
[ROIR 2021] 染色 (Day 2)
Background
Translated from ROIR 2021 Day2 T3 Хорошие раскраски。
Problem Description
Color an matrix using colors. It is required that for any and , the colors of the four cells , , , are not all different.
Construct one valid coloring.
The testdata guarantees that a solution exists.
Input Format
One line with three integers .
Output Format
Output lines. Each line contains integers in the range , representing the color used for each cell.
2 2 2
1 2
2 2
Hint
- For of the testdata, 。
- For the other of the testdata, 。
- For of the testdata, and 。
Note: The attachment is the Special Judge for this problem, for debugging.
Translated by ChatGPT 5