Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор tan_delhi, история, 20 месяцев назад, По-английски

A few contestants might have noticed that due to time limit of 1 second for questions in previous contests , python coders are facing TLE's. For e.g. in yesterday's contest C question

Python Code — https://p.ip.fi/y0K_ C++ Code — https://p.ip.fi/FAoW the first one TLEd , however 2nd passed in 100 ms. Case for ek3ru8m4 as well. Gheal kindly look at this

PS — I hope the issue is genuine and shall be well received.

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

»
20 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

I'm pretty sure its because the testcase was designed to blow up the hashmap.

This gets AC, but I assume there's a better way to get around this problem in Python XD