Asia Yokohama Regional Contest 2018 B题 - Arithmetic Progressions(dp)

NoSuchKey