GCC Code Coverage Report


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

test/cpv/library-checker-convolution/convolution_mod_1000000007.mints-bs.conv_anymod-3nttu64.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/convolution_mod_1000000007
3 #include "../../../src/io/container/lib.hpp"
4 #include "../../../src/io/fastin/lib.hpp"
5 #include "../../../src/io/fastout/lib.hpp"
6
7 using namespace tifa_libs;
8 CEXP u32 MOD = 1000000007;
9
10 #include "../../../src/conv/add/ntt3/lib.hpp"
11 #include "../../../src/math/ds/mint/bs/lib.hpp"
12
13 using namespace tifa_libs;
14 using mint = mint_bs<MOD>;
15 using namespace tifa_libs;
16 using mint_3nttu640 = mint_bs<167772161>;
17 using mint_3nttu641 = mint_bs<469762049>;
18 using mint_3nttu642 = mint_bs<754974721>;
19 using ntt_3nttu640_t = ntt<mint_3nttu640>;
20 using ntt_3nttu641_t = ntt<mint_3nttu641>;
21 using ntt_3nttu642_t = ntt<mint_3nttu642>;
22 using vec_t = vecuu;
23 48 auto conv_func(vec_t CR a, vec_t CR b) {
24 48 ntt_3nttu640_t ntt0;
25 48 ntt_3nttu641_t ntt1;
26 48 ntt_3nttu642_t ntt2;
27 48 return conv_3ntt_u64(ntt0, ntt1, ntt2, a, b, MOD);
28 }
29
30 48 int main() {
31 u32 n, m;
32 48 tifa_libs::fin_uint >> n >> m;
33
2/4
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 48 times.
✗ Branch 5 not taken.
144 vec_t a(n), b(m);
34 48 tifa_libs::fin_uint >> a >> b;
35 48 tifa_libs::fout << conv_func(a, b) << '\n';
36 48 return 0;
37 48 }
38