Can you help me debug my code?

Revision en2, by Doge_Wick, 2017-07-14 11:58:29

My submission 28543110 for problem 828C - String Reconstruction of the Round 423 based on VK Cup gives me a Runtime Error. I'm kinda new to the thing. Can you help me find it?

About my solution: - s is the collection of strings. - maxstring[i] stores the index of the string that starts from position i and has greater length than all the other ones starting at i. - ans (string) stores the final answer. - maxsize denotes the size of the ans.

Edit 1: Changing N from to 2e6+6 gives me TLE. How did this happen?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Doge_Wick 2017-07-14 11:58:29 67
en1 English Doge_Wick 2017-07-14 11:56:25 486 Initial revision (published)