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

Автор mkitkat, история, 5 лет назад, По-английски

Hi, I was going through the solutions for this question Mike and Distributions and wrote this ->Solution<- using some hints from some others solution.

Help me, I can't figure out why this solution even passes as it would have given TLE. Thanks in advance.

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

»
5 лет назад, # |
  Проголосовать: нравится -13 Проголосовать: не нравится

there is so many different "unfair" sequences because of "k should be smaller or equal to n/2+1" which made it possible to find one fast enough with random_shuffle