test/cpv_local/geo3d/cvh3d.bzoj1209.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: LOCALCASE test/cpv_local/_data/bzoj/1209 | ||
| 2 | |||
| 3 | #include "../../../src/geo3d/ds/cvh/lib.hpp" | ||
| 4 | |||
| 5 | using namespace tifa_libs; | ||
| 6 | using std::cin, std::cout; | ||
| 7 | using data_t = f128; | ||
| 8 | using point = point3d<data_t>; | ||
| 9 | using cvh = cvh3d<data_t>; | ||
| 10 | |||
| 11 | 9 | int main() { | |
| 12 |
1/2✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
|
9 | cout << std::fixed << std::setprecision(6); |
| 13 | |||
| 14 | u32 n; | ||
| 15 |
1/2✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
|
9 | cin >> n; |
| 16 |
1/2✓ Branch 1 taken 9 times.
✗ Branch 2 not taken.
|
9 | vec<point> vp(n + 1); |
| 17 |
2/2✓ Branch 2 taken 450 times.
✓ Branch 3 taken 9 times.
|
459 | flt_ (u32, i, 1, n + 1) cin >> vp[i]; |
| 18 | 9 | cvh cvh(vp); | |
| 19 |
2/4✓ Branch 2 taken 9 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 9 times.
✗ Branch 6 not taken.
|
9 | cout << cvh.surface_area() << '\n'; |
| 20 | 9 | } | |
| 21 |