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

Автор shantol, история, 4 года назад, По-английски

These two codes are exactly same,,but I don't know why one code got accepted but another is getting TLE

The code got AC: https://codeforces.net/contest/1501/submission/109903610

The code, getting TLE: https://codeforces.net/contest/1501/submission/110064601

someone pls explain why?

Теги ac, tle, same, why
  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

New test cases were probably added after the contest. Many of the AC solutions during the contest are getting TLE'd.