スイープ実装はよ
https://i.imgur.com/Tb29DiS.jpg
https://i.imgur.com/JUoyw1S.jpg
https://i.imgur.com/r9PeJtp.jpg