-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem proposal] Adjugate matrix #1269
Comments
Thank you very much! |
Thanks! I initially only came up with some complicated approaches via Frobenius normal form or Schur's complement (the latter is actually quite easy to implement, which is why the PR uses it, but a bit harder to explain), but then a tester pointed out that Wikipedia contained all the information you need all along with the For the solution that is used in the pull request, I can also share this brief tutorial PDF: matrix-minors-r16-en.pdf |
It will be nice to have this problem on Library Checker! Also, this problem is related and some other methods might be found in the submissions: https://atcoder.jp/contests/xmascon21/tasks/xmascon21_h |
Problem name: Adjugate matrix
(Optional) Problem ID: adjugate_matrix
Problem
Given$N \times N$ matrix $A = \lbrace a_{ij} \rbrace$ with entries in $\mathbb{Z}/p\mathbb{Z}$ , print $\text{adj } A = \lbrace (-1)^{i+j}M_{ji} \rbrace$ , where $M_{ij}$ is the determinant of the matrix that is obtained from $A$ by removing its $i$ -th row and $j$ -th column.
Constraint
Solution / Reference
(Optional) Input
:
(Optional) Output
:
(Optional) Note / Disucussion
The text was updated successfully, but these errors were encountered: