HBC209782BinaryVector题解 (roundgodisobsessiveaboutlinear)

回忆凄美了谁 算法基础篇 84 0
想要成为编程高手?那就来试试全网最全C++题库,让您在练习中快速成长。
A={0,1}, everyday she will generate a binary vector randomly in. +7.Formally, it can be proved that the answer has the form of. Wcy thinks the problem too easy. Let the answer of. Note that when adding up two vectors,the components are modulo

Roundgod is obsessive about linear algebra. Let A={0,1} A={0,1}, everyday she will generate a binary vector randomly in A^n A n . Now she wonders the probability of generating n n linearly independent vectors in the next n n days modulo 10^9+7 10 9 +7. Formally, it can be proved that the answer has the form of  frac{P}{Q} Q P ​ , where  P P and  Q Q are coprime and  Q Q is not a multiple of 10^9+7 10 9 +7. The answer modulo 10^9+7 10 9 +7 thus means P cdot Q^{-1} (textrm{mod} 10^9+7 ) P⋅Q −1 (mod 10 9 +7), where Q^{-1} Q −1 is the multiplicative inverse of 10^9+7 10 9 +7. Wcy thinks the problem too easy. Let the answer of n n be f_n f n ​ , she wants to know f_1oplus f_2oplus ...oplus f_N f 1 ​ ⊕f 2 ​ ⊕...⊕f N ​ , where oplus ⊕ denotes bitwise exclusive or operation. Note that when adding up two vectors, the components are modulo 2 2.

HBC209782BinaryVector题解
(roundgodisobsessiveaboutlinear)-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
想要在职场中立于不败之地?那就来试试全网最全C++题库,让您在练习中快速提升技能。

标签: HBC209782BinaryVector题解