SSD9 HOMEWORK1&2的答案,原创,代码用java编写eclipse运行通过