test/cpv_local/geo2d/aunion_cs.bzoj2178.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: LOCALCASE test/cpv_local/_data/bzoj/2178 | ||
| 2 | |||
| 3 | #include "../../../src/edh/discretization/lib.hpp" | ||
| 4 | #include "../../../src/geo2d/aunion/cs/lib.hpp" | ||
| 5 | #include "../../../src/io/container/lib.hpp" | ||
| 6 | |||
| 7 | using namespace tifa_libs; | ||
| 8 | using std::cin, std::cout; | ||
| 9 | using data_t = f64; | ||
| 10 | using Circle2 = circle<data_t>; | ||
| 11 | |||
| 12 | 17 | int main() { | |
| 13 |
1/2✓ Branch 1 taken 17 times.
✗ Branch 2 not taken.
|
17 | cout << std::fixed << std::setprecision(3); |
| 14 | |||
| 15 | u32 n; | ||
| 16 |
1/2✓ Branch 1 taken 17 times.
✗ Branch 2 not taken.
|
17 | cin >> n; |
| 17 |
1/2✓ Branch 1 taken 17 times.
✗ Branch 2 not taken.
|
17 | vec<Circle2> cs(n); |
| 18 | 17 | cin >> cs; | |
| 19 |
1/2✓ Branch 1 taken 17 times.
✗ Branch 2 not taken.
|
17 | auto res = aunion_Cs(uniq(cs)); |
| 20 |
2/4✓ Branch 2 taken 17 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 17 times.
✗ Branch 6 not taken.
|
17 | cout << res[0] << '\n'; |
| 21 | 17 | } | |
| 22 |