Блог пользователя idr

Автор idr, история, 7 лет назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится