构造
CF2048E
二分图,左部 个点,右部 个点。能否用至多 种颜色为 条边着色,满足图中没有单色环。
每种颜色构成一个森林,边数最多 。
Problem - 2094F - Codeforces(shift)
Problem - 2101A - Codeforces(蛇形)
【12E】构造 的矩阵( 为偶数),只能使用 种不同的数字,且满足任一行(列)的数字互不相同,主对角线都是 0,且整体关于主对角线对称。
Trulicina gives you integers , , and . It is guaranteed that and .
Output a by grid of integers such that each of the following criteria hold:
- Each integer in the grid is between and , inclusive.
- Each integer from to appears an equal number of times.
- No two cells that share an edge have the same integer.
It can be shown that such a grid always exists. If there are multiple solutions, output any.
1628C. Grid Xor
或
1 | .*#.*. |
1 | .*#.*.*# |
本部落格所有文章除特別聲明外,均採用CC BY-NC-SA 4.0 授權協議。轉載請註明來源 小明の雜貨屋!
評論
