loj#P3479. 「ROIR 2021 Day 2」染色
「ROIR 2021 Day 2」染色
Description
Translated from ROIR 2021 Day2 T3 Хорошие раскраски on this website.
Your task is to find a solution of the follows:
Use kinds of colors to colorize a matrix of size satisfying that for any , the color in cells , , , are different.
It is guaranteed that a solution exists.
Input Format
Three integers in the only line.
Output Format
Output lines and columns of numbers, each representing the color of corresponding cells.
2 2 2
1 2
2 2
Constraints
- For of test data, it is guaranteed that .
- For the other of test data, it is guaranteed that .
- For all test data, it is guaranteed that .