Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Khairy's blog

By Khairy, history, 11 years ago, In English

Problem Link: Here

Any hints will be appreciated.

I thought about DP but I couldn't know how to manage it.

Thanks

Full text and comments »

  • Vote: I like it
  • +12
  • Vote: I do not like it