782. Distinct Rows and Columns

The complexity of an binary matrix is the number of distinct rows and columns.

For example, consider the matrices

has complexity 2 because the set of rows and columns is . has complexity 3 because the set of rows and columns is .

For , let be the minimum complexity of an binary matrix with exactly ones.

Let For example, . You are given , and .

Find .

782. 不同的行与列

对于任意 01 矩阵,我们定义其复杂度为其每一行、每一列所组成的不同二进制串的数量。

举个例子,考虑如下两个 01 矩阵:

的复杂度为 2,不同二进制串的集合为 的复杂度为 3,不同二进制串的集合为

对于 ,记 为所有恰好含有 个 1 的 01 矩阵中,复杂度的最小值

再记: 例如,。已知


这个链接 回到源站。

这个链接 回到详细版题目目录。