Codeforces 1511D. Min Cost String(构造)

NoSuchKey