diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2023-02-27 16:15:26 +0100 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2023-02-27 16:15:26 +0100 |
| commit | 20f815136be8fea32f80a797f56a1ab2de2b61a5 (patch) | |
| tree | 31286fe7423f677379e9665ab75ce4fded18d7f0 | |
| parent | b067d9880606143ac4b860beff4d5b02e7d349bd (diff) | |
fix lgs
| -rw-r--r-- | math/lgsFp.cpp | 2 | ||||
| -rw-r--r-- | tcr.pdf | bin | 648962 -> 648971 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/math/lgsFp.cpp b/math/lgsFp.cpp index 13cdbd0..29ec849 100644 --- a/math/lgsFp.cpp +++ b/math/lgsFp.cpp @@ -15,7 +15,7 @@ void takeAll(int n, int line, ll p) { void gauss(int n, ll mod) { // Nx(N+1)-Matrix, Körper F_p. vector<bool> done(n, false); for (int i = 0; i < n; i++) { - int j = i; + int j = 0; while (j < n && (done[j] || mat[j][i] == 0)) j++; if (j == n) continue; swap(mat[i], mat[j]); Binary files differ |
