Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

can DP be applied in this problem
Difference between en1 and en2, changed 2 character(s)
Here is the Problem Image : [Click here](https://ibb.co/T15xL4r) ↵

Sample Input output and constraints : [CLICK here](https://ibb.co/M8D9krW)↵

Please specify an approach for this problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English code_tycoon 2021-08-08 17:47:41 2 Tiny change: '15xL4r) \nSample I' -> '15xL4r) \n\nSample I' (published)
en1 English code_tycoon 2021-08-08 17:45:58 221 Initial revision (saved to drafts)