# [Community Puzzle] The Mystic Rectangle

https://www.codingame.com/training/easy/the-mystic-rectangle

Created by @davilla,validated by @Alex-1,@Mohsen1365ir and @Leptit.
If you have any issues, feel free to ping them.

What is Validator 7? My code is only failing that, and I am not sure what I am missing.

You can view each test case by clicking here

I meant the validator case. My code passed all test cases there, but I got only 91% overall, because it failed â€śValidator 7â€ť, which I canâ€™t check. (Canâ€™t upload image, but in the results > my reports part)
As for your image, the validator cases do not appear among the test cases for me, unlike they do on your picture. Thank you for taking the time to answer!

Validator 7:

100 127
120 100

Nothing special here, so I wonder what your problem is

2 Likes

it was a rounding error, thank you!

can someone explain in the example how travelling 15 units diagonally and 5 units to the north would get her to her goal

Starting location is `(50, 15)`.

After travelling diagonally 15 units NE, Ataria arrives at `(65, 0)`. As the map wraps around, that also means Ataria arrives at `(65, 150)`.

So, she can travel straight 5 units N to arrive finally at `(65, 145)`.