I would've won this game if my knight can move diagonally like a bishop!
Yifan created an imaginary piece, knishop, in order to win in a chess tournament. It can move like a knight or a bishop in all moves. More formally, if a knishop is currently at coordinate $$$(x,y)$$$:
In Yifan's imagination, a chessboard is a cartesian plane without a boundary. In other words, pieces can move to any point with integer coordinates, like $$$(-1,-2)$$$. To test the power of this piece, Yifan wants to move his knishop from $$$(x_1,y_1)$$$ to $$$(x_2,y_2)$$$ in the minimum number of moves. Find the minimum number of moves needed.
The first line contains 4 integers $$$x_1,y_1,x_2,y_2$$$ $$$(-10^9\le x_1,y_1,x_2,y_2\le 10^9)$$$.
The minimum number of moves needed.
0 0 1 2
1
1 1 -100 -100
1
In the first example, the knishop moves like a knight.
In the second example, the knishop moves diagonally, like a bishop.
| Name |
|---|


