GCC Code Coverage Report


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

test/cpv_local/geo2d/ins_hps.bzoj2618.cpp
Line Branch Exec Source
1 // competitive-verifier: LOCALCASE test/cpv_local/_data/bzoj/2618
2
3 #include "../../../src/geo2d/ins_hps/lib.hpp"
4
5 using namespace tifa_libs;
6 using std::cin, std::cout;
7 using data_t = f64;
8 using Point2 = point<data_t>;
9 using Line2 = line<data_t>;
10 using ConvexHull2 = cvh<data_t>;
11
12 9 int main() {
13
1/2
✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
9 cout << std::fixed << std::setprecision(3);
14
15 u32 n, m;
16
1/2
✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
9 cin >> n;
17 9 vec<Line2> vl;
18 Point2 firstp, pre, now;
19
2/2
✓ Branch 0 taken 44 times.
✓ Branch 1 taken 9 times.
53 for (u32 i = 1; i <= n; ++i) {
20
1/2
✓ Branch 1 taken 44 times.
✗ Branch 2 not taken.
44 cin >> m >> firstp;
21 44 pre = firstp;
22
2/2
✓ Branch 0 taken 638 times.
✓ Branch 1 taken 44 times.
682 for (u32 j = 1; j <= m - 1; ++j) {
23 638 cin >> now;
24
1/2
✓ Branch 1 taken 638 times.
✗ Branch 2 not taken.
638 vl.emplace_back(pre, now);
25 638 pre = now;
26 }
27
1/2
✓ Branch 1 taken 44 times.
✗ Branch 2 not taken.
44 vl.emplace_back(now, firstp);
28 }
29
3/6
✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
✓ Branch 6 taken 9 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 9 times.
✗ Branch 10 not taken.
9 cout << ins_hPs(vl).area() << '\n';
30 9 }
31