Codeforces 811C - Vladik and Memorable Trip(预处理 + dp)

NoSuchKey