test/cpv/library-checker-geo/minimum_enclosing_circle.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/minimum_enclosing_circle | ||
| 2 | #include "../../../src/geo2d/min_cover_c/lib.hpp" | ||
| 3 | #include "../../../src/io/container/lib.hpp" | ||
| 4 | |||
| 5 | using namespace tifa_libs; | ||
| 6 | using point_t = point<f64>; | ||
| 7 | |||
| 8 | 25 | int main() { | |
| 9 |
1/2✓ Branch 2 taken 25 times.
✗ Branch 3 not taken.
|
25 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 10 | |||
| 11 | u32 n; | ||
| 12 |
1/2✓ Branch 1 taken 25 times.
✗ Branch 2 not taken.
|
25 | std::cin >> n; |
| 13 |
1/2✓ Branch 1 taken 25 times.
✗ Branch 2 not taken.
|
25 | vec<point_t> vp(n); |
| 14 | 25 | std::cin >> vp; | |
| 15 |
1/2✓ Branch 1 taken 25 times.
✗ Branch 2 not taken.
|
25 | auto vp2 = vp; |
| 16 |
2/4✓ Branch 1 taken 25 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 25 times.
✗ Branch 5 not taken.
|
25 | shuffle(vp2, std::mt19937{TIME}); |
| 17 | 25 | auto c = min_cover_C(vp2); | |
| 18 |
3/4✓ Branch 5 taken 1089425 times.
✗ Branch 6 not taken.
✓ Branch 9 taken 1089425 times.
✓ Branch 10 taken 25 times.
|
1089450 | for (auto&& p : vp) std::cout << (relation_CP(c, p) == RELCP::onborder); |
| 19 | |||
| 20 | 25 | return 0; | |
| 21 | 25 | } | |
| 22 |