GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 10 / 0 / 10
Functions: 100.0% 1 / 0 / 1
Branches: 56.2% 9 / 0 / 16

test/cpv/aizu-grl/grl_4_a.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/all/GRL_4_A
2 #include "../../../src/graph/ds/alist/lib.hpp"
3 #include "../../../src/graph/topo_sort/lib.hpp"
4
5 using namespace tifa_libs;
6 44 int main() {
7
1/2
✓ Branch 2 taken 44 times.
✗ Branch 3 not taken.
44 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
8 u32 n, m;
9
2/4
✓ Branch 1 taken 44 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 44 times.
✗ Branch 5 not taken.
44 std::cin >> n >> m;
10 44 alist g(n);
11
2/2
✓ Branch 0 taken 8447 times.
✓ Branch 1 taken 44 times.
8491 for (u32 i = 0, u, v; i < m; ++i) {
12
2/4
✓ Branch 1 taken 8447 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8447 times.
✗ Branch 5 not taken.
8447 std::cin >> u >> v;
13 8447 g.add_arc(u, v);
14 }
15
2/4
✓ Branch 3 taken 44 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 44 times.
✗ Branch 7 not taken.
44 std::cout << topo_sort(g).empty() << '\n';
16 44 return 0;
17 44 }
18