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: 61.1% 11 / 0 / 18

test/cpv/aizu-cgl/cgl_7_a.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_7_A
2 #include "../../../src/geo2d/ds/c/lib.hpp"
3 #include "../../../src/geo2d/rel/cc/lib.hpp"
4
5 using namespace tifa_libs;
6 using circ = circle<double>;
7
8 40 int main() {
9
1/2
✓ Branch 2 taken 40 times.
✗ Branch 3 not taken.
40 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
10 circ c1, c2;
11 40 std::cin >> c1 >> c2;
12
5/6
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 6 times.
✓ Branch 3 taken 9 times.
✓ Branch 4 taken 8 times.
✓ Branch 5 taken 14 times.
✗ Branch 6 not taken.
40 switch (relation_CC(c1, c2)) {
13
1/2
✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
3 case RELCC::lyingin: std::cout << "0\n"; break;
14
1/2
✓ Branch 1 taken 6 times.
✗ Branch 2 not taken.
6 case RELCC::touchin: std::cout << "1\n"; break;
15
1/2
✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
9 case RELCC::intersect: std::cout << "2\n"; break;
16
1/2
✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
8 case RELCC::touchex: std::cout << "3\n"; break;
17
1/2
✓ Branch 1 taken 14 times.
✗ Branch 2 not taken.
14 case RELCC::lyingout: std::cout << "4\n"; break;
18 }
19 40 return 0;
20 }
21