https://qiita.com/futakuchi0117/items/6f444ea1596506fafe5d
x-means法が既にあるね