How to solve SPOJ CRICKDP

Правка en1, от gautam94, 2015-12-17 14:11:27

Problem: http://www.spoj.com/problems/CRICKDP/

I tried doing it by finding the minimum removal cost for each score in and then using this to calculate the maximum total score by DP, but this is too slow. Any other ideas will be appreciated. Thanks.

Теги dp, crickdp, spoj, knapsack

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский gautam94 2015-12-17 14:11:27 294 Initial revision (published)