GCC Code Coverage Report


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

test/cpv/aizu-grl/grl_3_c.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/all/GRL_3_C
2 #include "../../../src/graph/scc/kosaraju/lib.hpp"
3
4 using namespace tifa_libs;
5 24 int main() {
6
1/2
✓ Branch 2 taken 24 times.
✗ Branch 3 not taken.
24 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
7 u32 n, m;
8
2/4
✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 24 times.
✗ Branch 5 not taken.
24 std::cin >> n >> m;
9 24 alist g(n);
10
2/2
✓ Branch 0 taken 104443 times.
✓ Branch 1 taken 24 times.
104467 for (u32 i = 0, u, v; i < m; ++i) {
11
2/4
✓ Branch 1 taken 104443 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 104443 times.
✗ Branch 5 not taken.
104443 std::cin >> u >> v;
12 104443 g.add_arc(u, v);
13 }
14 24 kosaraju scc(g);
15 u32 q;
16
1/2
✓ Branch 1 taken 24 times.
✗ Branch 2 not taken.
24 std::cin >> q;
17
2/2
✓ Branch 0 taken 389439 times.
✓ Branch 1 taken 24 times.
389463 for (u32 i = 0, u, v; i < q; ++i) {
18
2/4
✓ Branch 1 taken 389439 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 389439 times.
✗ Branch 5 not taken.
389439 std::cin >> u >> v;
19
2/4
✓ Branch 3 taken 389439 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 389439 times.
✗ Branch 7 not taken.
389439 std::cout << (scc.scc_id[u] == scc.scc_id[v]) << '\n';
20 }
21 24 return 0;
22 24 }
23