Skip to content

Commit

Permalink
yosupo convex hull test
Browse files Browse the repository at this point in the history
  • Loading branch information
ngthanhtrung23 committed Jun 2, 2024
1 parent 750c41a commit 0cb513d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Geometry/tests/yosupo_convex_hull.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#define PROBLEM "https://judge.yosupo.jp/problem/static_convex_hull"

Check failure on line 1 in Geometry/tests/yosupo_convex_hull.test.cpp

View workflow job for this annotation

GitHub Actions / verify

failed to verify

#include "../../template.h"
#include "../basic.h"
#include "../polygon.h"

void solve() {
int ntest; cin >> ntest;
while (ntest--) {
int n; cin >> n;
vector<P<int>> ps(n);
for (int i = 0; i < n; ++i) cin >> ps[i];

ConvexHull(ps);
cout << ps.size() << '\n';
for (const auto& p : ps) cout << p.x << ' ' << p.y << '\n';
}
}
1 change: 1 addition & 0 deletions Graph/DfsTree/StronglyConnected.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// Tested:
// - (requires scc to be topo sorted) https://judge.yosupo.jp/problem/scc
// - https://cses.fi/problemset/task/1686/
// - (edges have costs) https://oj.vnoi.info/problem/bedao_g16_b
struct DirectedDfs {
vector<vector<int>> g;
int n;
Expand Down

0 comments on commit 0cb513d

Please sign in to comment.