传送门 A. Candies B. Balanced Array C. Alternating Subsequence D. Constant Palindrome Sum E. Weights Distributing F. Restore the Permutation by Sorted Segments