Codeforces исполнилось 10 лет! Мы рады анонсировать краудфандинг-кампанию. Поздравьте нас по ссылке ×

SGU — Mars Stomatology

Правка en2, от themaskedhero, 2016-03-25 02:50:33

Hi everyone,

I was solving this problem and I was unable to. I believe that this is DP, but I do not know the state. I do note that, for any gum, we can easily uniquely determine how much it will cost to take n teeth from that gum by picking greedily.

Thanks much in advance, themaskedhero


  Rev. Язык Кто Когда Δ Комментарий
en2 Английский themaskedhero 2016-03-25 02:50:33 57
en1 Английский themaskedhero 2016-03-25 02:50:04 319 Initial revision (published)