test/cpv/aizu-cgl/cgl_7_g.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: ERROR 0.00001 | ||
| 2 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_7_G | ||
| 3 | #include "../../../src/edh/discretization/lib.hpp" | ||
| 4 | #include "../../../src/geo2d/ds/c/lib.hpp" | ||
| 5 | #include "../../../src/geo2d/ds/p/lib.hpp" | ||
| 6 | #include "../../../src/geo2d/tan/cc_ex/lib.hpp" | ||
| 7 | #include "../../../src/geo2d/tan/cc_in/lib.hpp" | ||
| 8 | |||
| 9 | using namespace tifa_libs; | ||
| 10 | using point_t = point<double>; | ||
| 11 | using circle_t = circle<double>; | ||
| 12 | |||
| 13 | 40 | int main() { | |
| 14 |
1/2✓ Branch 2 taken 40 times.
✗ Branch 3 not taken.
|
40 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 15 |
1/2✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
|
40 | std::cout << std::fixed << std::setprecision(12); |
| 16 | circle_t c1, c2; | ||
| 17 | 40 | std::cin >> c1 >> c2; | |
| 18 | 40 | auto exl = extan_CC(c1, c2), inl = intan_CC(c1, c2); | |
| 19 | 40 | vec<point_t> ans; | |
| 20 |
2/2✓ Branch 1 taken 37 times.
✓ Branch 2 taken 3 times.
|
40 | if (exl) { |
| 21 |
1/2✓ Branch 2 taken 37 times.
✗ Branch 3 not taken.
|
37 | ans.push_back(exl->first.l); |
| 22 |
1/2✓ Branch 2 taken 37 times.
✗ Branch 3 not taken.
|
37 | ans.push_back(exl->second.l); |
| 23 | } | ||
| 24 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 2 taken 18 times.
|
40 | if (inl) { |
| 25 |
1/2✓ Branch 2 taken 22 times.
✗ Branch 3 not taken.
|
22 | ans.push_back(inl->first.l); |
| 26 |
1/2✓ Branch 2 taken 22 times.
✗ Branch 3 not taken.
|
22 | ans.push_back(inl->second.l); |
| 27 | } | ||
| 28 |
1/2✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
|
40 | ans = uniq(ans); |
| 29 |
3/4✓ Branch 5 taken 104 times.
✗ Branch 6 not taken.
✓ Branch 9 taken 104 times.
✓ Branch 10 taken 40 times.
|
144 | for (auto& i : ans) std::cout << i << '\n'; |
| 30 | 40 | return 0; | |
| 31 | 40 | } | |
| 32 |