tan_delhi's blog

By tan_delhi, history, 17 months ago, In English

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.

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
17 months ago, # |
  Vote: I like it +1 Vote: I do not like it

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