GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 12 / 0 / 12
Functions: 100.0% 2 / 0 / 2
Branches: 61.1% 11 / 0 / 18

test/cpv/aizu-grl/grl_3_b.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/all/GRL_3_B
2 #include "../../../src/graph/scc/v_bcc/lib.hpp"
3 #include "../../../src/io/pair/lib.hpp"
4
5 using namespace tifa_libs;
6 40 int main() {
7
1/2
✓ Branch 2 taken 40 times.
✗ Branch 3 not taken.
40 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
8 u32 n, m;
9
2/4
✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 40 times.
✗ Branch 5 not taken.
40 std::cin >> n >> m;
10 40 alist g(n);
11
2/2
✓ Branch 0 taken 129093 times.
✓ Branch 1 taken 40 times.
129133 for (u32 i = 0, u, v; i < m; ++i) {
12
2/4
✓ Branch 1 taken 129093 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 129093 times.
✗ Branch 5 not taken.
129093 std::cin >> u >> v;
13 129093 g.add_edge(u, v);
14 }
15 40 v_bcc<false, true, false> bcc(g);
16
1/2
✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
2214 std::ranges::sort(bcc.ecut, {}, [](auto CR x) { return std::minmax(x.first, x.second); });
17
3/4
✓ Branch 8 taken 326 times.
✗ Branch 9 not taken.
✓ Branch 12 taken 326 times.
✓ Branch 13 taken 40 times.
366 for (auto [u, v] : bcc.ecut) std::cout << std::minmax(u, v) << '\n';
18 40 return 0;
19 40 }
20