Runtime error/Time limit exceeded in Codechef on using string versus char array.

Revision en1, by idr, 2017-05-16 23:16:42

Hello, I was trying to solve a problem on Codechef where I had to process a string of max size 10^5. When i was using c++ string to store the string i got Runtime error/Time limit exceeded as the judge response but the solution got successfully executed when i used a char array with size 100005. I would like to know the reason behind it? Thanks.

Tags c++ 14, codechef, string

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English idr 2017-05-16 23:16:42 427 Initial revision (published)