GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 10 / 0 / 10
Functions: 100.0% 3 / 0 / 3
Branches: 50.0% 3 / 0 / 6

test/cpv/library-checker-linear_algebra/adjugate_matrix.mints-ms64.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/adjugate_matrix
3 #include "../../../src/lalg/ds/mat/lib.hpp"
4 #include "../../../src/lalg/mat/adj/lib.hpp"
5 #include "../../../src/lalg/mat/ge/lib.hpp"
6
7 using namespace tifa_libs;
8 CEXP u32 MOD = 998244353;
9
10 #include "../../../src/math/ds/mint/ms64/lib.hpp"
11
12 using namespace tifa_libs;
13 using mint = mint_ms64<MOD>;
14 using mat = tifa_libs::matrix<mint>;
15
16 44 int main() {
17
1/2
✓ Branch 2 taken 44 times.
✗ Branch 3 not taken.
44 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
18 u32 n;
19
1/2
✓ Branch 1 taken 44 times.
✗ Branch 2 not taken.
44 std::cin >> n;
20 44 mat a(n, n);
21 44 std::cin >> a;
22 8128452 auto is_0 = [](cT_(mint) x) { return x.val() == 0; };
23 44 auto ge = [&is_0](mat& m, bool f) { return tifa_libs::ge_mat(m, is_0, f); };
24
1/2
✓ Branch 1 taken 44 times.
✗ Branch 2 not taken.
44 std::cout << tifa_libs::adj_mat(a, is_0, ge);
25 44 return 0;
26 44 }
27