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

Правка en1, от 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.

Теги c++ 14, codechef, string

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский idr 2017-05-16 23:16:42 427 Initial revision (published)