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

Автор i_love_vim, история, 4 года назад, По-английски

Hello all,

I am trying to solve CSES movie festival II using the same logic for movie festival I. I am greedily assigning the movies to k people sorted by end times. But this is giving me WA on cases 5, 6, and 7. These cases have n = 200000, so I cannot work them out on paper to find out the problem in my logic. So request to please give me some test cases to help me find the mistake in my logic.

My code

Spoiler

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

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