ILoveBfsDfs's blog

By ILoveBfsDfs, history, 9 years ago, In English

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 ?

  • Vote: I like it
  • 0
  • Vote: I do not like it