From 0f1223c5396961a661da4f12caf0252f924de01b Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Wed, 19 Feb 2025 21:29:03 +0100 Subject: reverse dynamic convex hull --- test/datastructures/dynamicConvexHull.lichao.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/datastructures/dynamicConvexHull.lichao.cpp') 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(-range, range); ll c = Random::integer(-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++; -- cgit v1.2.3