No.151 問題 コード 左向きの魚用と右向きの魚用に Binary Indexed Tree を用意して更新していく. Binary Indexed Tree の長さを としておいて, 時間 経過後の座標を で変換する.