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: 68.8% 11 / 0 / 16

test/cpv/aizu-cgl/cgl_2_a.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_2_A
2 #include "../../../src/geo2d/ds/l/lib.hpp"
3 #include "../../../src/geo2d/ds/p/lib.hpp"
4
5 using namespace tifa_libs;
6 using point_t = point<double>;
7 using line_t = line<double>;
8
9 32 int main() {
10
1/2
✓ Branch 2 taken 32 times.
✗ Branch 3 not taken.
32 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
11 u32 q;
12
1/2
✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
32 std::cin >> q;
13
2/2
✓ Branch 0 taken 21062 times.
✓ Branch 1 taken 32 times.
21094 flt_ (u32, i, 0, q) {
14 line_t l1, l2;
15 21062 std::cin >> l1 >> l2;
16
3/4
✓ Branch 4 taken 5240 times.
✓ Branch 5 taken 15822 times.
✓ Branch 7 taken 5240 times.
✗ Branch 8 not taken.
21062 if (is_zero(l1.direction() * l2.direction())) std::cout << "1\n";
17
3/4
✓ Branch 1 taken 5397 times.
✓ Branch 2 taken 10425 times.
✓ Branch 4 taken 5397 times.
✗ Branch 5 not taken.
15822 else if (l1.is_parallel(l2)) std::cout << "2\n";
18
1/2
✓ Branch 1 taken 10425 times.
✗ Branch 2 not taken.
10425 else std::cout << "0\n";
19 }
20 32 return 0;
21 }
22