CodeForces 919D Substring 拓扑排序+dp

NoSuchKey