This documentation is automatically generated by competitive-verifier/competitive-verifier
// competitive-verifier: PROBLEM http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_4_A
#include <bits/stdc++.h>
#include "../geometry/convex-hull.hpp"
using namespace std;
#ifdef LOCAL
#include "copypaste/debug.h"
#else
#define debug(...) 42
#endif
struct fast_ios {
fast_ios() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
};
} fast_ios_;
int main() {
#ifdef LOCAL
freopen("./data.in", "r", stdin);
#endif
using Point = geometry::TPoint<int>;
vector<Point> points;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
points.emplace_back(x, y);
}
auto convex = geometry::convex_hull_by_graham(points, true);
debug(convex);
int sz = convex.size();
cout << sz << endl;
for (int i = 0; i < sz; i++) {
cout << convex[i].x << ' ' << convex[i].y << endl;
}
return 0;
}
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 477, in update
raise BundleErrorAt(
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: test/aoj-cgl-4-a-2.test.cpp: line 9: unable to process #include in #if / #ifdef / #ifndef other than include guards
Env | Name | Status | Elapsed | Memory |
---|---|---|---|---|
g++ | 00_sample_00.in |
![]() |
5 ms | 4 MB |
g++ | 01_small_00.in |
![]() |
4 ms | 4 MB |
g++ | 01_small_01.in |
![]() |
4 ms | 4 MB |
g++ | 01_small_02.in |
![]() |
4 ms | 4 MB |
g++ | 01_small_03.in |
![]() |
4 ms | 4 MB |
g++ | 02_medium_00.in |
![]() |
4 ms | 4 MB |
g++ | 02_medium_01.in |
![]() |
4 ms | 4 MB |
g++ | 02_medium_02.in |
![]() |
4 ms | 4 MB |
g++ | 02_medium_03.in |
![]() |
4 ms | 4 MB |
g++ | 03_rand_00.in |
![]() |
4 ms | 4 MB |
g++ | 03_rand_01.in |
![]() |
4 ms | 4 MB |
g++ | 03_rand_02.in |
![]() |
4 ms | 4 MB |
g++ | 03_rand_03.in |
![]() |
4 ms | 4 MB |
g++ | 04_large_00.in |
![]() |
19 ms | 4 MB |
g++ | 04_large_01.in |
![]() |
34 ms | 5 MB |
g++ | 05_radial_00.in |
![]() |
11 ms | 4 MB |
g++ | 05_radial_01.in |
![]() |
15 ms | 4 MB |
g++ | 05_radial_02.in |
![]() |
20 ms | 4 MB |
g++ | 05_radial_03.in |
![]() |
32 ms | 5 MB |
g++ | 06_linear_00.in |
![]() |
5 ms | 3 MB |
g++ | 06_linear_01.in |
![]() |
17 ms | 4 MB |
g++ | 06_linear_02.in |
![]() |
8 ms | 4 MB |
g++ | 06_linear_03.in |
![]() |
84 ms | 7 MB |
g++ | 06_linear_04.in |
![]() |
31 ms | 4 MB |