This documentation is automatically generated by competitive-verifier/competitive-verifier
// @brief Static Convex Hull
#define PROBLEM "https://judge.yosupo.jp/problem/static_convex_hull"
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("tune=native")
#include "cp-algo/geometry/convex_hull.hpp"
#include <bits/stdc++.h>
using namespace std;
using namespace cp_algo::geometry;
using point = point_t<int64_t>;
void solve() {
int n;
cin >> n;
vector<point> r(n);
for(auto &it: r) {
it.read();
}
auto res = convex_hull(r);
cout << size(res) << "\n";
for(auto it: res) {
it.print();
}
}
signed main() {
//freopen("input.txt", "r", stdin);
ios::sync_with_stdio(0);
cin.tie(0);
int t = 1;
cin >> t;
while(t--) {
solve();
}
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 327, in update
assert len(lines) == len(uncommented_lines)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Env | Name | Status | Elapsed | Memory |
---|---|---|---|---|
g++ | all_same_00 |
![]() |
72 ms | 4 MB |
g++ | all_same_01 |
![]() |
71 ms | 4 MB |
g++ | example_00 |
![]() |
5 ms | 4 MB |
g++ | example_01 |
![]() |
5 ms | 4 MB |
g++ | max_ans_00 |
![]() |
169 ms | 29 MB |
g++ | max_colinear_00 |
![]() |
115 ms | 19 MB |
g++ | max_colinear_01 |
![]() |
112 ms | 19 MB |
g++ | max_random_00 |
![]() |
121 ms | 19 MB |
g++ | max_random_01 |
![]() |
84 ms | 19 MB |
g++ | max_random_02 |
![]() |
105 ms | 19 MB |
g++ | max_random_03 |
![]() |
112 ms | 19 MB |
g++ | max_random_04 |
![]() |
122 ms | 19 MB |
g++ | max_random_05 |
![]() |
86 ms | 19 MB |
g++ | max_random_06 |
![]() |
106 ms | 19 MB |
g++ | max_random_07 |
![]() |
112 ms | 19 MB |
g++ | near_circle_00 |
![]() |
152 ms | 24 MB |
g++ | near_circle_01 |
![]() |
151 ms | 23 MB |
g++ | small_random_00 |
![]() |
128 ms | 4 MB |
g++ | small_random_01 |
![]() |
99 ms | 4 MB |
g++ | small_random_02 |
![]() |
101 ms | 4 MB |
g++ | small_random_03 |
![]() |
104 ms | 4 MB |
g++ | small_random_04 |
![]() |
127 ms | 3 MB |
g++ | small_random_05 |
![]() |
101 ms | 4 MB |
g++ | small_random_06 |
![]() |
101 ms | 4 MB |
g++ | small_random_07 |
![]() |
104 ms | 4 MB |