GCC Code Coverage Report


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

test/cpv/aizu-cgl/cgl_2_d.cpp
Line Branch Exec Source
1 // competitive-verifier: ERROR 0.00000001
2 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_2_D
3 #include "../../../src/geo2d/dis/ss/lib.hpp"
4 #include "../../../src/geo2d/ds/l/lib.hpp"
5 #include "../../../src/geo2d/ds/p/lib.hpp"
6
7 using namespace tifa_libs;
8 using point_t = point<double>;
9 using line_t = line<double>;
10
11 20 int main() {
12
1/2
✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
20 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
13
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cout << std::fixed << std::setprecision(10);
14 u32 q;
15
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cin >> q;
16
2/2
✓ Branch 0 taken 3064 times.
✓ Branch 1 taken 20 times.
3084 flt_ (u32, i, 0, q) {
17 line_t l1, l2;
18 3064 std::cin >> l1 >> l2;
19
2/4
✓ Branch 2 taken 3064 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 3064 times.
✗ Branch 6 not taken.
3064 std::cout << dist_SS(l1, l2) << '\n';
20 }
21 20 return 0;
22 }
23