test/cpv/aizu-cgl/cgl_5_a.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: ERROR 0.000001 | ||
| 2 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_5_A | ||
| 3 | #include "../../../src/geo2d/ds/p/lib.hpp" | ||
| 4 | #include "../../../src/geo2d/min_dis_ps/lib.hpp" | ||
| 5 | |||
| 6 | using namespace tifa_libs; | ||
| 7 | using point_t = point<double>; | ||
| 8 | |||
| 9 | 32 | int main() { | |
| 10 |
1/2✓ Branch 2 taken 32 times.
✗ Branch 3 not taken.
|
32 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 11 |
1/2✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
|
32 | std::cout << std::fixed << std::setprecision(10); |
| 12 | u32 n; | ||
| 13 |
1/2✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
|
32 | std::cin >> n; |
| 14 |
1/2✓ Branch 1 taken 32 times.
✗ Branch 2 not taken.
|
32 | vec<point_t> vp(n); |
| 15 |
2/2✓ Branch 6 taken 1356331 times.
✓ Branch 7 taken 32 times.
|
1356363 | for (auto& i : vp) std::cin >> i; |
| 16 | 32 | auto [l, r] = min_dis_Ps(vp); | |
| 17 |
2/4✓ Branch 4 taken 32 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 32 times.
✗ Branch 8 not taken.
|
32 | std::cout << dist_PP(vp[l], vp[r]) << '\n'; |
| 18 | 32 | return 0; | |
| 19 | 32 | } | |
| 20 |