「codeforces - 1394C」Boboniu and String
link。注意到 BN-string 长成什么样根本不重要,我们把它表述为 BN-pair $(x, y)$ 即可,两个 BN-strings 相似的充要条件即两者分别映射得到的 BN-pair...
In mathematics you don't understand things, you just get used to them.
In mathematics you don't understand things, you just get used to them.