Getting WA on test case 2

Правка en1, от Legend_11, 2024-07-05 13:53:48

Hello Codeforces, I was trying to solve the question : Question. I tried to solve it in a knapsack dp kind of manner

Code

I am getting WA on testcase 2. I am unable to think of any counter test case or what I am doing wrong. It would be really helpful if somebody could help me regarding this question . Thank you in advance.

Теги oa, knapsack

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Legend_11 2024-07-05 13:57:08 196
en1 Английский Legend_11 2024-07-05 13:53:48 2643 Initial revision (published)