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% 2 / 0 / 2
Branches: 50.0% 5 / 0 / 10

test/cpv/library-checker-convolution/convolution_mod_large.mints-ms.conv_large-ntt_large.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/convolution_mod_large
3 #include "../../../src/conv/add/ntt_large/lib.hpp"
4 #include "../../../src/io/container/lib.hpp"
5 #include "../../../src/io/fastin/lib.hpp"
6 #include "../../../src/io/fastout/lib.hpp"
7
8 using namespace tifa_libs;
9 CEXP u32 MOD = 998244353;
10
11 #include "../../../src/conv/trans/ntt/lib.hpp"
12 #include "../../../src/math/ds/mint/ms/lib.hpp"
13
14 using namespace tifa_libs;
15 using mint = mint_ms<MOD>;
16 using namespace tifa_libs;
17 using ntt_ntt_large_t = ntt<mint>;
18 using vec_t = vec<mint>;
19 54 auto conv_func(vec_t CR a, vec_t CR b) {
20 54 ntt_ntt_large_t ntt;
21
2/4
✓ Branch 1 taken 54 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 54 times.
✗ Branch 5 not taken.
54 return conv_ntt_large(ntt, a, b);
22 }
23
24 54 int main() {
25 u32 n, m;
26 54 tifa_libs::fin_uint >> n >> m;
27
2/4
✓ Branch 1 taken 54 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 54 times.
✗ Branch 5 not taken.
162 vec<mint> a(n), b(m);
28 54 tifa_libs::fin_uint >> a >> b;
29
1/2
✓ Branch 1 taken 54 times.
✗ Branch 2 not taken.
54 tifa_libs::fout << conv_func(a, b) << '\n';
30 54 return 0;
31 54 }
32