Ad
  • Custom User Avatar

    shorter by one cell, but:

    Expected: 23.142135623730955d +/- 9.9999999999999995E-08d
    But was: 23.384776310850242d

    meaning, longer overall. ;)

    EDIT: just in case, be careful about your understanding of this rule:

    The shortest path is defined as the path with the shortest euclidiean distance going from one node to the next.

  • Custom User Avatar

    SG1Test
    Test Failed
    Your path is too long or wrong
    Expected: 23.142135623730955d +/- 9.9999999999999995E-08d
    But was: 23.384776310850242d

    why my path wrong? my path is shorter by 1 cell

    One possible path:
    .X.X.X....XXXXXX...X
    XX.XX.XXXXXXXXXXX..X
    .X.X.XX..X..X.XXXXXX
    X.X..XXX...XX.X.XXX.
    X.X..X..XXX.X.X.X...
    .XXX..XXXXX.X.X..XX.
    X.XX.SX......XXX..X.
    .XXXXXPXXX...XXP.X..
    ....XPXX..X.XXPXP.XX
    ....X.PXX..XXP.XPXX.
    X...X.PXX.X.XPXX.PPX
    .XXX...PPPPPPX.XX..G
    ..XX.XX.XX.X.XXXXXX.
    .X.X...X.X.XXXX..X.X
    ..X..XXX.XX....XXXX.
    XX..XXXXXXX.....XXXX
    XXXX.X.X..XXXXXX...X
    X...X..X..XXXX..X..X
    X.XXXXX..XX..XXX.X.X
    XX.X.XX.XXXX.X..X.XX

    Your path:
    .X.X.X....XXXXXX...X
    XX.XX.XXXXXXXXXXX..X
    .X.X.XX..X..X.XXXXXX
    X.X..XXX...XX.X.XXX.
    X.X..X..XXX.X.X.X...
    .XXX..XXXXX.X.X..XX.
    X.XX.SXPPP...XXX..X.
    .XXXXXPXXXP..XXP.X..
    ....X.XX.PX.XXPXP.XX
    ....X..XX.PXXP.XPXX.
    X...X..XX.XPXPXX.PPX
    .XXX........PX.XX..G
    ..XX.XX.XX.X.XXXXXX.
    .X.X...X.X.XXXX..X.X
    ..X..XXX.XX....XXXX.
    XX..XXXXXXX.....XXXX
    XXXX.X.X..XXXXXX...X
    X...X..X..XXXX..X..X
    X.XXXXX..XX..XXX.X.X
    XX.X.XX.XXXX.X..X.XX

    sry, i dont know how to show anymore