This problem is used in private contest:C++寒假上午班-循环结构
C++挑战赛3
C++挑战赛6