This problem is used in private contest:C++入门期末测试