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

Блог пользователя Beknur-Tumen-045-26

Автор Beknur-Tumen-045-26, история, 13 часов назад, По-английски
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

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

You have to make a binary search on time, and your checker function returns true if it is possible to gather all people at a point; otherwise, it returns false. (This way, the problem is solved using BS.)

my submission

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

    I cant see your submission, how can I find relevant point?

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

      you do not have to find the point where they meet

      you have to find the range of each person where they can travel in the given time and find the intersection of each person's range if there is the intersection between all then this time is valid

      check this

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

        ok, thanks