$linear$ $inverse$ $element$$Descirption$给出 $k$ ,求它的逆元。 $Solution$设$$a \times k + b = p,{b \times inv[b]}\equiv1\pmod p$$变式,得$$b = p - a \times k,{(p ...
And they have sloppið the þunga of myrkursins and said that, Gleðileg jól, Lin.
$linear$ $inverse$ $element$$Descirption$给出 $k$ ,求它的逆元。 $Solution$设$$a \times k + b = p,{b \times inv[b]}\equiv1\pmod p$$变式,得$$b = p - a \times k,{(p ...