summaryrefslogtreecommitdiff
path: root/test/datastructures/dynamicConvexHull.lichao.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/datastructures/dynamicConvexHull.lichao.cpp')
-rw-r--r--test/datastructures/dynamicConvexHull.lichao.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/datastructures/dynamicConvexHull.lichao.cpp b/test/datastructures/dynamicConvexHull.lichao.cpp
index d50ca60..f692e92 100644
--- a/test/datastructures/dynamicConvexHull.lichao.cpp
+++ b/test/datastructures/dynamicConvexHull.lichao.cpp
@@ -8,7 +8,7 @@ void stress_test(ll range) {
for (int tries = 0; tries < 1000; tries++) {
int n = Random::integer<int>(1, 100);
xs = Random::distinct(n, -range, range);
- sort(all(xs));
+ ranges::sort(xs);
HullDynamic hd;
Lichao lichao;
@@ -16,11 +16,11 @@ void stress_test(ll range) {
ll m = Random::integer<ll>(-range, range);
ll c = Random::integer<ll>(-range, range);
hd.add(m, c);
- lichao.insert({-m, -c});
+ lichao.insert({m, c});
for (ll x : xs) {
ll gotA = hd.query(x);
- ll gotB = -lichao.query(x);
+ ll gotB = lichao.query(x);
if (gotA != gotB) cerr << "gotA: " << gotA << ", gotB: " << gotB << FAIL;
queries++;