TinNumber's blog

By TinNumber, history, 5 years 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 :'(

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?