Rosetta Problems

Kth Good Substring

https://onlinejudge.u-aizu.ac.jp/problems/3571