Stay Hungry,Stay Foolish!

C - Tile Distance 2

C - Tile Distance 2 https://atcoder.jp/contests/abc359/tasks/abc359_c 思路 在x方向上,让s<t 然后 如果s在tile的左边,移动到右边, 如果t在tile的右边,移动到左边, 计算x 和 y方便的必走的steps, y方向上容
posted @ 2024-06-23 22:50  lightsong  阅读(11)  评论(0编辑  收藏  举报
Life Is Short, We Need Ship To Travel