Rosetta Problems

Non Arithmetic Progression Set

https://atcoder.jp/contests/arc145/tasks/arc145_d