Can you spot the error in my approach for this Bitmask DP problem?

Правка en2, от cosmere, 2022-08-15 00:14:38

I was trying to solve this problem here. In my initial submission here, I am going from a mask with only one fish to a complete mask, and it works. But in the case of this submission here, I am going from a complete mask to a particular fish, but apparently there is some overcounting in this case. Can someone please help me understand what is wrong in the second submission. Thanks in advance!

Теги dp, bitmask

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский cosmere 2022-08-15 00:14:38 30
en1 Английский cosmere 2022-08-15 00:12:30 610 Initial revision (published)