Help with topcoder question DIV 2 1000

Revision en1, by Ishan.nitj, 2016-06-21 15:34:50

This topcoder question appeared in SRM 689 https://community.topcoder.com/stat?c=problem_statement&pm=14247

This is my code http://ideone.com/443DkL but i am getting TLE for large inputs like : abcdefghijklmno xxxxxxxxxxxxxxx

I have written the code very clearly and it is easy to understand.

Tags dp, bitmasking, topcoder

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ishan.nitj 2016-06-21 15:34:50 341 Initial revision (published)