@5 累乗最大値ロジック修正
merge shuntaro4 branch with @5