My submission [submission:28543110] for problem [problem:828C] 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?
↵
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?