This problem is used in private contest:2020级电子院JAVA课-第二次作业