Does somebody know how to solve problem C from Atcoder DP contest using bitmasks?

Revision en1, by Wunka, 2021-09-10 17:21:20

Hi! I was solving problem C from Atcoder educational DP contest and it seems to me that this problem can be solved using bitmasks. If you're smarter than me and can solve this using bitmasks — share the solution in the comments(or if it is impossible to solve it in that way , explain please why it is impossible).

Link to the problem : https://atcoder.jp/contests/dp/tasks/dp_c

Tags atcoder dp contest, #atcoder, #help, #bitmasks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Wunka 2021-09-10 17:21:20 472 Initial revision (published)