[Codeforces 1201D]Treasure Hunting(DP)

NoSuchKey