HBC213131Determinant题解

季陌殇 算法基础篇 29 0
不断提升技能,才能在职场中立于不败之地!全网最全C++题库,助您成为编程领域的佼佼者。
M_{i, j} = left{begin{matrix} x + a_i b_j & mathrm{when} i = j \ a_i b_j & mathrm{otherwise} end{matrix}right.

Bobo has an integer x and two n arrays a_1, dots, a_n a 1 ​ ,…,a n ​ , b_1, dots, b_n b 1 ​ ,…,b n ​ . He makes an n times n n×n matrix M where M_{i, j} = left{begin{matrix} x + a_i b_j & mathrm{when} i = j \ a_i b_j & mathrm{otherwise} end{matrix}right. M i,j ​ ={ x+a i ​ b j ​ a i ​ b j ​ ​ when i=j otherwise ​ Find the determinant of the matrix M modulo (10^9+7) (10 9 +7).

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

标签: HBC213131Determinant题解