This problem is used in private contest:高二枚举算法练习