Codeforces Round #517 (Div. 2), problem (D) Minimum path 贪心

NoSuchKey