Thinking or Construction
Posted on
Edited on
- Duplicates 题意:给定 \(n \times n\) 的网格,其中每格数都属于 \([1,n]\) ,求最小的修改次数使得这个网格的每行以及每列都包含至少两个相同的数,并输出修改方案。