Hide and seek#6588

Hide and seek (Discussion)

  1. qwertysunDec 26, 2024, 8:36 PM

    Is it just me or is the time constraint incorrect in this problem? If the authoring works for 1c, I would very much like to see the authoring solution, if someone answers me here, I would be very happy)

    1. MStrechenDec 26, 2024, 9:28 PM

      qwertysun Hi, the time limit seems to be correct. We have a solution with 381 ms of execution time, so it's quite solvable.

      Time complexity of the mentioned solution is O(S•(N+M)•log(N+M)). While I could send you a link, I think you could solve it by your own :)