Window into a Matrix II
A window into a matrix is a contiguous sub matrix.
Consider a matrix where every entry is either or .
Let be the total number of these matrices such that the sum of the entries in every window is .
You are given that and .
Find . Give your answer modulo .
矩阵窗口II
矩阵的窗口是指矩阵中一个连续的子矩阵。
考虑一个的矩阵,其中的元素均为或。
若矩阵中任意一个的窗口中元素之和都为,记所有这样的矩阵数目为。
已知以及。
求,并将你的答案对取余。
Gitalking ...