This problem is used in private contest:数组
C++挑战赛4
C++挑战赛6