I have played a few games with Atcoder recently, and I still need to make up for it in the past few days. It’s been a long time since I last updated the solution.
Almost all Atcoder questions can be classified as [thinking questions]. The data structure is not complicated within the scope of my knowledge, but you just can’t figure it out.
I have really forgotten my original intention of writing this blog. I wrote every article so seriously at the beginning, and look at it now.
This round is mainly about questions E and F, and questions A to D are relatively weak.
Three strings are substrings of one string. Random combination, the original string length is required to be minimum.
This question cannot be greedy by any enumeration combination. During the competition, I had already discovered that I couldn’t be greedy. However. . . I actually asked for all kinds of special conditions, but no matter what I did, I couldn’t get it right. . . Really retarded. . .
Directly enumerate ab, ac, bc offsets, and then combine them uniformly.