help in a problem

Правка en1, от ILoveBfsDfs, 2016-05-12 18:01:43

http://codeforces.me/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 ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ILoveBfsDfs 2016-05-12 18:01:43 286 Initial revision (published)