GCC Code Coverage Report


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

test/cpv/aizu-cgl/cgl_7_f.cpp
Line Branch Exec Source
1 // competitive-verifier: ERROR 0.000001
2 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_7_F
3 #include "../../../src/geo2d/ds/c/lib.hpp"
4 #include "../../../src/geo2d/ds/p/lib.hpp"
5 #include "../../../src/geo2d/tan/cp/lib.hpp"
6
7 using namespace tifa_libs;
8 using point_t = point<double>;
9 using circle_t = circle<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(12);
14 circle_t c;
15 point_t p;
16 20 std::cin >> p >> c;
17
1/2
✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
20 auto [x, y] = tan_CP(c, p).value();
18
2/2
✓ Branch 1 taken 14 times.
✓ Branch 2 taken 6 times.
20 if (x < y) std::cout << x << '\n'
19
2/4
✓ Branch 2 taken 14 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 14 times.
✗ Branch 7 not taken.
14 << y << '\n';
20 else std::cout << y << '\n'
21
2/4
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 6 times.
✗ Branch 7 not taken.
6 << x << '\n';
22 20 return 0;
23 }
24