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

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

Want to find ways to practice that help in fast improvement, Please suggest me. I can give 10 hours a day, Also if I increase difficulty problems takes a lot of time to solve, so I should practice till I am fast at that rating or waste more time by increasing difficulty.

Полный текст и комментарии »

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

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

I request everyone,to bully me until I became master.This will always remind me my goal and will keep me motivated, I am too weak now, but I want to be strong

Полный текст и комментарии »

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

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

I need number of questions solved by a user and current cf rank but its missing, also number of active users. Can plz someone suggest me something .

Полный текст и комментарии »

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

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

I have to find min value of [a/x]+[b/x]+x-1 ,where x belongs to (1,10^9) ,here [] denotes ceil value. I then observed it is monotonic in nature. Its graph will be like

The only problem i am having is to find slope(from slope i meant if every step is assumed as points ,this will help me to shift l and r) and slope can be find by use of its previous neighbour points to find neighbour of y=f(x),we need to find length of y so for given y=[a/x]+[b/x]+x-1 i need the range of the solution

Полный текст и комментарии »

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

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

These are some files that will help out in fast i/o, improving recursions, sorted lists,wrap function for collisions in dict and some pre written code that takes time to write. Here is the github link , I will update it with time.

Полный текст и комментарии »

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

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

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

Полный текст и комментарии »

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

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

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:)

Полный текст и комментарии »

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

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

(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 .....

Полный текст и комментарии »

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

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

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

Полный текст и комментарии »

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