From 3b788c5fae6d65bc12564787952d5b7a0f37cb9f Mon Sep 17 00:00:00 2001 From: Same0620 <131766594+Same0620@users.noreply.github.com> Date: Thu, 26 Sep 2024 00:03:31 +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 f32720b..1dc49bb 100644 --- a/pE/solution/correct.cpp +++ b/pE/solution/correct.cpp @@ -17,8 +17,8 @@ void sol(){ p[1].S=a;p[2].S=b;p[3].S=c; sort(p+1, p+4, cmp); //cout << p[1].F << " " << p[2].F << " " << p[3].F << endl; - for(int i=1;i<=n;i++)cin >> h[i]; cin >> d >> l >> r; + for(int i=1;i<=n;i++)cin >> h[i]; for(int i=11;i<=lim;i++)dp[i]=min(dp[i], dp[i-11]+a); for(int i=451;i<=lim;i++)dp[i]=min(dp[i], dp[i-451]+b); for(int i=11451;i<=lim;i++)dp[i]=min(dp[i], dp[i-11451]+c);