help in a problem

Revision en1, by ILoveBfsDfs, 2016-05-12 18:01:43

http://mirror.codeforces.com/contest/437/problem/C

for second case if i remove 3 first cost=100 then remove 4 cost=100+100=200;(3 already removed) and 2 then will cost=200+100=300 and 1 cost=300+0=300; i find 300 ,but the result is 400, am i missing something ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ILoveBfsDfs 2016-05-12 18:01:43 286 Initial revision (published)