CodeForces_919D Substring(拓扑排序+记忆化搜索(dp))

NoSuchKey