Skip to content

Commit

Permalink
Update correct.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Same0620 authored Sep 25, 2024
1 parent cff032a commit 3b788c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pE/solution/correct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b788c5

Please sign in to comment.