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: 60.0% 6 / 0 / 10

test/cpv/library-checker-enumerative_combinatorics/many_factorials.mints-ms64.poly_anymod-pmtt.factorial-factl_helper.cpp
Line Branch Exec Source
1 #define AUTO_GENERATED
2 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/many_factorials
3 #include "../../../src/util/alias/num/lib.hpp"
4
5 using namespace tifa_libs;
6 CEXP u32 MOD = 998244353;
7
8 #include "../../../src/fps/ds/mtt/lib.hpp"
9 #include "../../../src/math/ds/mint/ms64/lib.hpp"
10 #include "../../../src/math/fact/helper_l/lib.hpp"
11
12 using namespace tifa_libs;
13 using mint = mint_ms64<MOD>;
14 using namespace tifa_libs;
15 using poly = polymtt<mint>;
16 using namespace tifa_libs;
17 using fact_t = factl_helper<poly>;
18
19 12 int main() {
20
1/2
✓ Branch 2 taken 12 times.
✗ Branch 3 not taken.
12 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
21 u32 t;
22
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 std::cin >> t;
23
2/2
✓ Branch 0 taken 1100005 times.
✓ Branch 1 taken 12 times.
1100017 while (t--) {
24 u32 n;
25
1/2
✓ Branch 1 taken 1100005 times.
✗ Branch 2 not taken.
1100005 std::cin >> n;
26
1/2
✓ Branch 3 taken 1100005 times.
✗ Branch 4 not taken.
1100005 std::cout << fact_t::get_fact(n) << '\n';
27 }
28 12 return 0;
29 }
30