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% 4 / 0 / 8

test/cpv/aizu-dpl/dpl_5_e.mintd-md64.mints-bs.poly_anymod-p3ntt.factorial-factl_helper.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/7/DPL/all/DPL_5_E
3 #include "../../../src/comb/ball_box/idm/lib.hpp"
4 #include "../../../src/comb/binom/lib.hpp"
5
6 using namespace tifa_libs;
7 CEXP u32 MOD = 1000000000 + 7;
8
9 #include "../../../src/fps/ds/ntt3/lib.hpp"
10 #include "../../../src/math/ds/mint/bs/lib.hpp"
11 #include "../../../src/math/ds/mint/md64/lib.hpp"
12 #include "../../../src/math/fact/helper_l/lib.hpp"
13
14 using namespace tifa_libs;
15 using mint = mint_md64<__LINE__>;
16 using namespace tifa_libs;
17 using mint_p3ntt1 = mint_bs<167772161>;
18 using mint_p3ntt2 = mint_bs<469762049>;
19 using mint_p3ntt3 = mint_bs<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 30 int main() {
25 30 mint::set_mod(MOD);
26
1/2
✓ Branch 2 taken 30 times.
✗ Branch 3 not taken.
30 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
27 u32 n, k;
28
2/4
✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 30 times.
✗ Branch 5 not taken.
30 std::cin >> n >> k;
29 30 tifa_libs::binom<mint, fact_t> binom(2001);
30
1/2
✓ Branch 3 taken 30 times.
✗ Branch 4 not taken.
30 std::cout << tifa_libs::ball_box_idm<mint>(n, k, binom) << '\n';
31 30 return 0;
32 }
33