GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 11 / 0 / 11
Functions: 100.0% 1 / 0 / 1
Branches: 60.0% 12 / 0 / 20

test/cpv/aizu-cgl/cgl_7_d.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_D
3 #include "../../../src/geo2d/ds/c/lib.hpp"
4 #include "../../../src/geo2d/ds/l/lib.hpp"
5 #include "../../../src/geo2d/ins/cl/lib.hpp"
6
7 using namespace tifa_libs;
8 using circle_t = circle<double>;
9 using line_t = line<double>;
10
11 12 int main() {
12
1/2
✓ Branch 2 taken 12 times.
✗ Branch 3 not taken.
12 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
13
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 std::cout << std::fixed << std::setprecision(12);
14 circle_t c;
15 12 std::cin >> c;
16 u32 q;
17
1/2
✓ Branch 1 taken 12 times.
✗ Branch 2 not taken.
12 std::cin >> q;
18
2/2
✓ Branch 0 taken 510 times.
✓ Branch 1 taken 12 times.
522 flt_ (u32, i, 0, q) {
19 line_t l;
20 510 std::cin >> l;
21
1/2
✓ Branch 2 taken 510 times.
✗ Branch 3 not taken.
510 auto [x, y] = ins_CL(c, l).value();
22
4/6
✓ Branch 1 taken 495 times.
✓ Branch 2 taken 15 times.
✓ Branch 5 taken 495 times.
✗ Branch 6 not taken.
✓ Branch 9 taken 495 times.
✗ Branch 10 not taken.
510 if (x < y) std::cout << x << ' ' << y << '\n';
23
2/4
✓ Branch 2 taken 15 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 15 times.
✗ Branch 7 not taken.
15 else std::cout << y << ' ' << x << '\n';
24 }
25 12 return 0;
26 }
27