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: 55.6% 10 / 0 / 18

test/cpv_local/geo2d/min_cover_c.bzoj2823.cpp
Line Branch Exec Source
1 // competitive-verifier: LOCALCASE test/cpv_local/_data/bzoj/2823
2
3 #include "../../../src/geo2d/min_cover_c/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 Circle2 = circle<data_t>;
10
11 10 int main() {
12
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 cout << std::fixed << std::setprecision(2);
13
14 u32 n;
15
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 cin >> n;
16
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 vec<Point2> vp(n);
17
2/2
✓ Branch 6 taken 1832000 times.
✓ Branch 7 taken 10 times.
1832010 for (auto& i : vp) cin >> i;
18
4/8
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 10 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 10 times.
✗ Branch 11 not taken.
10 std::ranges::shuffle(vp, std::mt19937{std::default_random_engine{}()});
19 10 auto ans = min_cover_C(vp);
20
1/2
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
10 cout << ans << '\n';
21 10 }
22