From d5a19c2bdbf401290d22bf94b4e9db5b073bcb01 Mon Sep 17 00:00:00 2001 From: Same0620 <131766594+Same0620@users.noreply.github.com> Date: Fri, 27 Sep 2024 00:11:48 +0800 Subject: [PATCH] Update correct.cpp --- pE/solution/correct.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pE/solution/correct.cpp b/pE/solution/correct.cpp index e55a86e..0adfe59 100644 --- a/pE/solution/correct.cpp +++ b/pE/solution/correct.cpp @@ -35,7 +35,7 @@ void sol(){ ms.insert(get(i+l)); lli tmp = *ms.begin(); dp[i]=min(dp[i], tmp+d); - ms.erase(ms.find(dp[i+r])); + ms.erase(ms.find(get(i+r))); } lli ans = 0;