GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 8 / 0 / 8
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 2 / 0 / 4

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