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-bs.poly_anymod-pmtt.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/mtt/lib.hpp"
10 #include "../../../src/math/ds/mint/bs/lib.hpp"
11 #include "../../../src/math/fact/helper_l/lib.hpp"
12
13 using namespace tifa_libs;
14 using mint = mint_bs<MOD>;
15 using namespace tifa_libs;
16 using poly = polymtt<mint>;
17 using namespace tifa_libs;
18 using fact_t = factl_helper<poly>;
19
20 10 int main() {
21
1/2
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
10 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
22 u32 r, d;
23
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;
24 10 auto p = tifa_libs::gen_pows<mint>(d + 1, d);
25 10 std::cout << tifa_libs::series_ipaf<mint, fact_t>(p, mint(r));
26 10 return 0;
27 10 }
28