Help needed in DP problem

Revision en2, by hemant_thakur, 2022-08-01 09:34:17

Can someone please help, what am I doing wrong ? Or on what test cases my solution is failing. It passes 12/19 test cases.

Here is the atcoder question link : LINK

Here is my solution:

Code

Thanks in advance :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hemant_thakur 2022-08-01 09:34:17 168 Tiny change: 'oiler>\n\n\n\n' -> 'oiler>\n\nThanks in advance :)\n\n\n\n' (published)
en1 English hemant_thakur 2022-08-01 09:28:47 949 Initial revision (saved to drafts)