Павук і муха#13

Павук і муха (Обговорення)

  1. Andremaxico28 серп. 2025 р., 08:02

    незрозуміло, відстань і шлях - це ж різні речі, формула для визначення відстані між двома точками у тривимірній системі координат дає тільки 20% задачі. Мабуть, все ж варто шукати шлях?

    1. skolodyazhnyy29 серп. 2025 р., 13:06

      Andremaxico мабуть

  2. Lucky12328 квіт. 2025 р., 09:50

    Вопрос какойто странный если паук может находится либо на стене либо на полу то обязательно что одна из его координат должны быть равны нулю так почему у нас могут быть все три координаты отличающиеся от нуля?

    1. skolodyazhnyy28 квіт. 2025 р., 10:10змінено

      Lucky123 не обязательно, паук может находиться на противоположной стене, например в комнате 2 \times 2 \times 2 он может бить в координатах (2, 1, 1)

  3. top4ik201018 бер. 2025 р., 21:40
    зображення_2025-03-18_224028568.png

    got the 100% nice

  4. Khayyam713 лист. 2024 р., 19:29

    i dont get it, can spider jump on the fly? for example what happens if spider is on the ceiling can it jump on the fly or it should go across walls

    1. skolodyazhnyy14 лист. 2024 р., 09:10змінено

      Khayyam7 normally if spider could jump it would have been in the statement. The spider cannot jump and must cross one of the walls to get to the floor. Furthermore, in the statement it says the spider is positioned on the wall or on the floor.

    2. top4ik201018 бер. 2025 р., 21:14змінено

      Khayyam7 spider cant be on ceiling cuz its said he might be on walls or ground, but nothing has been said about ceiling.

  5. cesur_ismayilov20 серп. 2024 р., 21:40

    I received a processing time error, but such an error should not have occurred, the question is problematic :)

    1. skolodyazhnyy21 серп. 2024 р., 07:25

      @user470803 note that values are provided in two lines, three integers in the first line and five integers in the second. Make sure you are reading input data correctly using "Run" mode.