##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
The board contains all cells such that .
Piece starts at cell , and piece starts at cell .
In one move, both pieces act simultaneously.
A piece may never leave the board.
For each test case, find the minimum number of moves after which it is possible for both pieces to be on the same cell.
After one move, piece A can stay at , and piece B can move diagonally from to .
After two moves, piece A can stay at , and piece B can move diagonally from to .
Both pieces can be at after two moves. Piece A reaches it using two side moves, and piece B reaches it using two diagonal moves.
Both pieces can be at after four moves. Piece A reaches it in two side moves and may stay for the remaining moves, while piece B reaches it using four diagonal moves.