2019-10-17 Project Euler 683 https://projecteuler.net/problem=683115着。 特に難しいことは無い。 sが累積だったら多少難しくなるかもしれないが。