monu_dixit's blog

By monu_dixit, history, 8 months ago, In English

Python enthusiasts might face limitations accessing certain libraries like sortedcontainers during contests such as the recent Round 918 (Div 4) on Codeforces. While the problem F in that contest could be efficiently solved using SortedList from sortedcontainers, unfortunately, the platform might not support this module. Consequently, Python users had to opt for alternative approaches such as Binary Indexed Trees (BIT) or merge sort to tackle the problem. It's worth noting that while sortedcontainers could have been a valuable asset in solving the problem, its absence might have prompted participants to explore other techniques available within the contest environment.

Full text and comments »

  • Vote: I like it
  • -8
  • Vote: I do not like it

By monu_dixit, history, 23 months ago, In English

Hello coders..

  1. Use sys module in your code for taking input. input = sys.stdin.readline
  2. Don't convert input array into list while taking input like this ->> "(a = list(map(int,input().split(' '))))" , use "(input().split())" and for iterating this input use enumerators.

Full text and comments »

  • Vote: I like it
  • -12
  • Vote: I do not like it