AGC040 Task C. Neither AB Nor BA

Observations

For a length of 2N $ $ repeating the sequence of operations: Remove and two different adjacent elements. Finally, the sequence can be emptied of the charge condition occurrences exceeds $ N $ element does not exist in the sequence.

Transformation

answer

References

https://www.cnblogs.com/cnyali-Tea/p/11827189.html

Guess you like

Origin www.cnblogs.com/Patt/p/11864401.html