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: 63.2% 12 / 0 / 19

test/cpv/aizu-cgl/cgl_3_c.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_3_C
2 #include "../../../src/geo2d/ds/p/lib.hpp"
3 #include "../../../src/geo2d/ds/po/lib.hpp"
4 #include "../../../src/geo2d/rel/pop/lib.hpp"
5
6 using namespace tifa_libs;
7 using point_t = point<double>;
8 using polygon_t = polygon<double>;
9
10 20 int main() {
11
1/2
✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
20 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
12
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cout << std::fixed << std::setprecision(1);
13 u32 n;
14
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cin >> n;
15 20 polygon_t pl(n);
16 20 std::cin >> pl;
17 u32 q;
18
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cin >> q;
19
2/2
✓ Branch 0 taken 7732 times.
✓ Branch 1 taken 20 times.
7752 flt_ (u32, i, 0, q) {
20 point_t p;
21 7732 std::cin >> p;
22
3/3
✓ Branch 1 taken 2938 times.
✓ Branch 2 taken 4277 times.
✓ Branch 3 taken 517 times.
7732 switch (relation_PoP(pl, p)) {
23
1/2
✓ Branch 1 taken 2938 times.
✗ Branch 2 not taken.
2938 case RELPoP::inside: std::cout << "2\n"; break;
24
1/2
✓ Branch 1 taken 4277 times.
✗ Branch 2 not taken.
4277 case RELPoP::outside: std::cout << "0\n"; break;
25
1/2
✓ Branch 1 taken 517 times.
✗ Branch 2 not taken.
517 default: std::cout << "1\n";
26 }
27 }
28 20 return 0;
29 20 }
30