GCC Code Coverage Report


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

test/cpv/library-checker-string/zalgorithm.mintd-bd.hashstr-hashstr2d.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/zalgorithm
3 #include "../../../src/io/fastin/lib.hpp"
4 #include "../../../src/io/fastout/lib.hpp"
5 #include "../../../src/str/hash/lcpf/lib.hpp"
6
7 using namespace tifa_libs;
8 CEXP u32 MOD = 998244353;
9
10 #include "../../../src/math/ds/mint/bd/lib.hpp"
11 #include "../../../src/str/hash/substr2/lib.hpp"
12
13 using namespace tifa_libs;
14 using mint = mint_bd<__LINE__>;
15 using namespace tifa_libs;
16 using mint0 = mint_bd<__LINE__>;
17 using mint1 = mint_bd<__LINE__>;
18 using hashstr = hash_substr2<mint0, mint1>;
19
20 29 int main() {
21 29 mint::set_mod(MOD);
22 29 mint0::set_mod(998244353);
23 29 mint1::set_mod(1000000007);
24 29 strn s;
25 29 tifa_libs::fin_uint >> s;
26 29 hashstr hs;
27 29 hs.set(s);
28
2/2
✓ Branch 5 taken 9311639 times.
✓ Branch 6 taken 29 times.
9311668 flt_ (u32, i, 0, (u32)s.size()) tifa_libs::fout << tifa_libs::lcpf_hash(hs, hs, 0, i) << " \n"[i + 1 == s.size()];
29 29 return 0;
30 29 }
31