这里有参考题解:https://www.nowcoder.com/discuss/22696?type=0&order=0&pos=5&page=1