1.The final position of the camel will be (H,W)(H,W)(H,W).
2.The final position of the cat will be (1,W)(1,W)(1,W).
A 要从左上角走到右下角,B 要从左下角走到右下角。
A 要从左上角走到右下角,B 要从左下角走到右上角。