This problem is used in private contest:C++二级拔高难度练习题