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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/datastructures/dynamicConvexHull.lichao.cpp b/test/datastructures/dynamicConvexHull.lichao.cpp
index 9a6ffb9..f692e92 100644
--- a/test/datastructures/dynamicConvexHull.lichao.cpp
+++ b/test/datastructures/dynamicConvexHull.lichao.cpp
@@ -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++;