test/cpv/library-checker-convolution/convolution_mod.mintd-md64.mints-bs.conv_anymod-3ntt.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #define AUTO_GENERATED | ||
| 2 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/convolution_mod | ||
| 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 = 998244353; | ||
| 9 | |||
| 10 | #include "../../../src/conv/add/ntt3/lib.hpp" | ||
| 11 | #include "../../../src/math/ds/mint/bs/lib.hpp" | ||
| 12 | #include "../../../src/math/ds/mint/md64/lib.hpp" | ||
| 13 | |||
| 14 | using namespace tifa_libs; | ||
| 15 | using mint = mint_md64<__LINE__>; | ||
| 16 | using namespace tifa_libs; | ||
| 17 | using mint_3ntt0 = mint_bs<167772161>; | ||
| 18 | using mint_3ntt1 = mint_bs<469762049>; | ||
| 19 | using mint_3ntt2 = mint_bs<754974721>; | ||
| 20 | using ntt_3ntt0_t = ntt<mint_3ntt0>; | ||
| 21 | using ntt_3ntt1_t = ntt<mint_3ntt1>; | ||
| 22 | using ntt_3ntt2_t = ntt<mint_3ntt2>; | ||
| 23 | using vec_t = vec<mint>; | ||
| 24 | 53 | auto conv_func(vec_t CR a, vec_t CR b) { | |
| 25 | 53 | ntt_3ntt0_t ntt0; | |
| 26 | 53 | ntt_3ntt1_t ntt1; | |
| 27 | 53 | ntt_3ntt2_t ntt2; | |
| 28 | 53 | return conv_3ntt(ntt0, ntt1, ntt2, a, b); | |
| 29 | } | ||
| 30 | |||
| 31 | 53 | int main() { | |
| 32 | 53 | mint::set_mod(MOD); | |
| 33 | u32 n, m; | ||
| 34 | 53 | tifa_libs::fin_uint >> n >> m; | |
| 35 |
2/4✓ Branch 1 taken 53 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 53 times.
✗ Branch 5 not taken.
|
159 | vec_t a(n), b(m); |
| 36 | 53 | tifa_libs::fin_uint >> a >> b; | |
| 37 | 53 | tifa_libs::fout << conv_func(a, b) << '\n'; | |
| 38 | 53 | return 0; | |
| 39 | 53 | } | |
| 40 |