GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 11 / 0 / 11
Functions: 100.0% 1 / 0 / 1
Branches: 57.1% 8 / 0 / 14

test/cpv/library-checker-enumerative_combinatorics/stirling_number_of_the_first_kind_small_p_large_n.mintd-md.mints-ms.poly_anymod-p3ntt.factorial-factl_helper.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/stirling_number_of_the_first_kind_small_p_large_n
3 #include "../../../src/comb/stirling1_smallp/lib.hpp"
4
5 using namespace tifa_libs;
6 CEXP u32 MOD = 998244353;
7
8 #include "../../../src/fps/ds/ntt3/lib.hpp"
9 #include "../../../src/math/ds/mint/md/lib.hpp"
10 #include "../../../src/math/ds/mint/ms/lib.hpp"
11 #include "../../../src/math/fact/helper_l/lib.hpp"
12
13 using namespace tifa_libs;
14 using mint = mint_md<__LINE__>;
15 using namespace tifa_libs;
16 using mint_p3ntt1 = mint_ms<167772161>;
17 using mint_p3ntt2 = mint_ms<469762049>;
18 using mint_p3ntt3 = mint_ms<754974721>;
19 using poly = poly3ntt<mint, mint_p3ntt1, mint_p3ntt2, mint_p3ntt3>;
20 using namespace tifa_libs;
21 using fact_t = factl_helper<poly>;
22
23 20 int main() {
24 20 mint::set_mod(MOD);
25
1/2
✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
20 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
26 u32 t, mod;
27
2/4
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 20 times.
✗ Branch 5 not taken.
20 std::cin >> t >> mod;
28 20 mint::set_mod(mod);
29 20 tifa_libs::stirling1<mint, fact_t> s;
30
2/2
✓ Branch 0 taken 3600016 times.
✓ Branch 1 taken 20 times.
3600036 while (t--) {
31 u64 n, k;
32
2/4
✓ Branch 1 taken 3600016 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 3600016 times.
✗ Branch 5 not taken.
3600016 std::cin >> n >> k;
33
1/2
✓ Branch 3 taken 3600016 times.
✗ Branch 4 not taken.
3600016 std::cout << s(n, k) << '\n';
34 }
35 20 return 0;
36 20 }
37