Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор KomorGiaoGiao, история, 6 часов назад, По-английски

This is a problem from Codeforces Round 975. I tried to solve it in the round time and expected to get higher rating. A solution of binary search to this problem jumped out in my mind, and I coded it quickly, but I got WA again and again. Please help me, maybe there are some mathematical wrong int my solution or some bugs in my codes, please pointed it out, thank you!!!!!

Problem_Link

My_Submission

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

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

You are doing binary search on a non monotone function

  • »
    »
    5 часов назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Could you explain that why it is a no monotone function?