Codeforces 1234 F. Yet Another Substring Reverse(子集dp)

NoSuchKey