Codeforces Round #617 (Div. 3) E1. String Coloring (easy version)

 

 

 

 Meaning of the questions: to a string and then sort, the collation can generate a new sequence of 01, then you can exchange different neighbor

Solution: the time to do it, but too much trouble, read the solution to a problem, while the hearts .........

 

 Defining a double pointer is then generated directly on the end ....

 

Guess you like

Origin www.cnblogs.com/RE-TLE/p/12288913.html