#P1228. 地毯填补问题
地毯填补问题
Output Format
Output a complete tiling plan: each placement (one line) is ( are the row and column of the carpet’s corner cell, and is the carpet’s shape; see Figure above. The four shapes are represented by . Separate with a single space).
3
3 3
5 5 1
2 2 4
1 1 4
1 4 3
4 1 2
4 4 1
2 7 3
1 5 4
1 8 3
3 6 3
4 8 1
7 2 2
5 1 4
6 3 2
8 1 2
8 4 1
7 7 1
6 6 1
5 8 3
8 5 2
8 8 1
Hint
Explanation of SPJ error codes:
- is out of range.
- are out of range.
- The position has already been covered.
- The position was never covered.
: Added sample explanation.
Sample Explanation

Translated by ChatGPT 5
京公网安备 11011102002149号