codechef problem help

Revision en1, by TinNumber, 2019-04-15 18:26:31

https://www.codechef.com/SNFL16MR/problems/BEAUTY/

I am trying to solve this problem for a long time. Cannot find any editorial by googling. Can you please help me out? Looking by the constraints it seems like a bitmask dp problem, but can't find anything :'(

Tags codechef, beautiful, sandwich

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TinNumber 2019-04-15 18:26:31 287 Initial revision (published)