GCC Code Coverage Report


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

test/cpv/aizu-cgl/cgl_4_c.cpp
Line Branch Exec Source
1 // competitive-verifier: ERROR 0.00001
2 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_4_C
3 #include "../../../src/geo2d/ds/cvh/lib.hpp"
4 #include "../../../src/geo2d/ds/l/lib.hpp"
5
6 using namespace tifa_libs;
7 using cvh_t = cvh<double>;
8 using line_t = line<double>;
9
10 16 int main() {
11
1/2
✓ Branch 2 taken 16 times.
✗ Branch 3 not taken.
16 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
12
1/2
✓ Branch 1 taken 16 times.
✗ Branch 2 not taken.
16 std::cout << std::fixed << std::setprecision(8);
13 u32 n;
14
1/2
✓ Branch 1 taken 16 times.
✗ Branch 2 not taken.
16 std::cin >> n;
15 16 cvh_t p(n);
16 16 std::cin >> p;
17 16 p.init();
18 u32 q;
19
1/2
✓ Branch 1 taken 16 times.
✗ Branch 2 not taken.
16 std::cin >> q;
20
2/2
✓ Branch 0 taken 581 times.
✓ Branch 1 taken 16 times.
597 flt_ (u32, i, 0, q) {
21 line_t l;
22 581 std::cin >> l;
23
1/2
✓ Branch 1 taken 581 times.
✗ Branch 2 not taken.
581 auto _ = p;
24
2/4
✓ Branch 3 taken 581 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 581 times.
✗ Branch 7 not taken.
581 std::cout << _.do_ins_CVHhP(l).area() << '\n';
25 581 }
26 16 return 0;
27 16 }
28