abcsumits's blog

By abcsumits, history, 2 months ago, In English

python doesn't have any library for ordered map and ordered set. We can install sortedContainers module in our pc for that. Please include this module. It would be very helpful for all who code in python.

MikeMirzayanov

Full text and comments »

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

By abcsumits, history, 2 months ago, In English

I have been searching for ordered map and orderedset in python , but i didn't got anything other than ordered dictionary, if any one have idea about it please help me. Thanks in advance:)

Full text and comments »

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

By abcsumits, history, 9 months ago, In English

(huge difference refer to the following submission)

160762368 — accepted (str)

160761953 — tle (int)

both solution are same the only difference is the key in first is string and in 2nd the key is int which is causing tle .....

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By abcsumits, history, 11 months ago, In English

i have submitted the code in contest and it was accepted(even the solution was not hacked) and when i submitted the same code in pypy3 it was accepted.Then i saw others solution i found that everyone was having same complexity as me and submitted in python 3 only and their solution was accepted. question- https://codeforces.com/contest/1675/problem/B my contest submition — https://codeforces.com/contest/1675/submission/155950529 my pypy3 submition- https://codeforces.com/contest/1675/submission/156065421 a correct submition for referrence- https://codeforces.com/contest/1675/submission/156006177

Full text and comments »

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