Spider and Fly#13

Spider and Fly (Discussion)

  1. AndremaxicoAug 28, 2025, 8:02 AM

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

    1. skolodyazhnyyAug 29, 2025, 1:06 PM

      Andremaxico мабуть

  2. Lucky123Apr 28, 2025, 9:50 AM

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

    1. skolodyazhnyyApr 28, 2025, 10:10 AMedited

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

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

    got the 100% nice

  4. Khayyam7Nov 13, 2024, 7:29 PM

    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. skolodyazhnyyNov 14, 2024, 9:10 AMedited

      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. top4ik2010Mar 18, 2025, 9:14 PMedited

      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_ismayilovAug 20, 2024, 9:40 PM

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

    1. skolodyazhnyyAug 21, 2024, 7:25 AM

      @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.