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

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

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.

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

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

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

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.

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

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