第二题AC代码,评论区有:https://www.nowcoder.com/discuss/1056103?toCommentId=14359786