https://lucienshui.github.io/blog/posts/codeforces_1008c_reorderthearray_shui_ti/
Codeforces-1008C - Reorder the Array - 水题 - Lucien's Blog