GCC Code Coverage Report


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

test/cpv_local/geo2d/dcvh.cf70d.cpp
Line Branch Exec Source
1 // competitive-verifier: LOCALCASE test/cpv_local/_data/codeforces/70D
2
3 #include "../../../src/geo2d/ds/dcvh/lib.hpp"
4
5 using namespace tifa_libs;
6 using std::cin, std::cout;
7 using data_t = f128;
8 using Point2 = point<data_t>;
9 using DynamicCVH2 = dcvh<data_t>;
10
11 const strn RES_YN[2] = {"NO", "YES"};
12
13 52 int main() {
14 u32 n;
15
1/2
✓ Branch 1 taken 52 times.
✗ Branch 2 not taken.
52 cin >> n;
16 52 DynamicCVH2 dcvh;
17 data_t x, y;
18
2/2
✓ Branch 0 taken 1391 times.
✓ Branch 1 taken 52 times.
1443 flt_ (u32, i, 1, n + 1, t) {
19
3/6
✓ Branch 1 taken 1391 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1391 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1391 times.
✗ Branch 8 not taken.
1391 cin >> t >> x >> y;
20
2/2
✓ Branch 0 taken 717 times.
✓ Branch 1 taken 674 times.
1391 if (t == 1) dcvh.insert(Point2{x, y});
21 else {
22
2/4
✓ Branch 3 taken 674 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 674 times.
✗ Branch 7 not taken.
674 cout << RES_YN[dcvh.contains(Point2{x, y})] << '\n';
23 }
24 }
25 52 }
26