test/cpv/library-checker-geo/static_convex_hull.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/static_convex_hull | ||
| 2 | #include "../../../src/geo2d/ds/cvh/lib.hpp" | ||
| 3 | |||
| 4 | using namespace tifa_libs; | ||
| 5 | using cvh_t = cvh<i64>; | ||
| 6 | |||
| 7 | 25 | int main() { | |
| 8 |
1/2✓ Branch 2 taken 25 times.
✗ Branch 3 not taken.
|
25 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 9 | u32 t; | ||
| 10 |
1/2✓ Branch 1 taken 25 times.
✗ Branch 2 not taken.
|
25 | std::cin >> t; |
| 11 |
2/2✓ Branch 0 taken 399889 times.
✓ Branch 1 taken 25 times.
|
399914 | while (t--) { |
| 12 | u32 n; | ||
| 13 |
1/2✓ Branch 1 taken 399889 times.
✗ Branch 2 not taken.
|
399889 | std::cin >> n; |
| 14 | 399889 | cvh_t poly(n); | |
| 15 | 399889 | std::cin >> poly; | |
| 16 | 399889 | poly.init(); | |
| 17 |
2/4✓ Branch 2 taken 399889 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 399889 times.
✗ Branch 6 not taken.
|
399889 | std::cout << poly.size() << '\n'; |
| 18 |
3/4✓ Branch 5 taken 2927208 times.
✗ Branch 6 not taken.
✓ Branch 9 taken 2927208 times.
✓ Branch 10 taken 399889 times.
|
3327097 | for (auto CR i : poly.vs) std::cout << i << '\n'; |
| 19 | 399889 | } | |
| 20 | 25 | return 0; | |
| 21 | } | ||
| 22 |