Блог пользователя Amit9

Автор Amit9, 4 часа назад, По-английски

0/1 Knapsack — Type 1 : (https://atcoder.jp/contests/dp/tasks/dp_d)
Solution :

Spoiler

0/1 Knapsack — Type 2 : (https://atcoder.jp/contests/dp/tasks/dp_e)
Solution:

Spoiler

0/1 Knapsack — Type 3 : (https://mirror.codeforces.com/gym/101064/problem/L)

How to solve this 3rd one where constraints on both Max capacity(W) and (n * val[i]) is large enough that traditional methods won't wrok ?

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится