GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 7 / 0 / 7
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 3 / 0 / 6

test/cpv/library-checker-other/sum_of_exponential_times_polynomial_limit.mints-ms.mints-ms64.poly_anymod-p3ntt.factorial-factl_helper.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/sum_of_exponential_times_polynomial_limit
3 #include "../../../src/comb/seq/pows/lib.hpp"
4 #include "../../../src/math/ipaf/series/lib.hpp"
5
6 using namespace tifa_libs;
7 CEXP u32 MOD = 998244353;
8
9 #include "../../../src/fps/ds/ntt3/lib.hpp"
10 #include "../../../src/math/ds/mint/ms/lib.hpp"
11 #include "../../../src/math/ds/mint/ms64/lib.hpp"
12 #include "../../../src/math/fact/helper_l/lib.hpp"
13
14 using namespace tifa_libs;
15 using mint = mint_ms<MOD>;
16 using namespace tifa_libs;
17 using mint_p3ntt1 = mint_ms64<167772161>;
18 using mint_p3ntt2 = mint_ms64<469762049>;
19 using mint_p3ntt3 = mint_ms64<754974721>;
20 using poly = poly3ntt<mint, mint_p3ntt1, mint_p3ntt2, mint_p3ntt3>;
21 using namespace tifa_libs;
22 using fact_t = factl_helper<poly>;
23
24 10 int main() {
25
1/2
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
10 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
26 u32 r, d;
27
2/4
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
10 std::cin >> r >> d;
28 10 auto p = tifa_libs::gen_pows<mint>(d + 1, d);
29 10 std::cout << tifa_libs::series_ipaf<mint, fact_t>(p, mint(r));
30 10 return 0;
31 10 }
32