Solution similar to editorial got TLE verdict ("Queries for Number of Palindromes" problem)

Правка en1, от sigma_g, 2019-02-14 18:09:32

Problem: https://codeforces.me/contest/245/problem/H

My solution: https://codeforces.me/contest/245/submission/49911945 Editorial solution: https://codeforces.me/contest/245/submission/2622404

Both of the codes look exactly the same, and have the same logic. Yet mine is TLE. Could anyone please help me understand why that is the case?

Теги string, tle, palindrome

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский sigma_g 2019-02-14 18:10:12 2 line break fixed
en1 Английский sigma_g 2019-02-14 18:09:32 437 Initial revision (published)