Question from 2004 East Central Regional Contest

Revision en1, by Ashish, 2018-09-29 21:29:45

Hey there, I was trying to solve A.Alphacode of this contest. My solution is here I am getting WA on test case 2. The question is pretty straightforward and hence I am not able to determine where my solution is failing. Any help would be appreciated.

Tags #strings, #dp, #easy, #implementation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ashish 2018-09-29 21:29:45 367 Initial revision (published)