TinNumber's blog

By TinNumber, history, 11 days ago, In English,

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 :'(

 
 
 
 

»
11 days ago, # |
  Vote: I like it 0 Vote: I do not like it

I found the editorial using a quick Google search.