题目:https://ac.nowcoder.com/acm/problem/24055 题解:https://blog.nowcoder.net/n/3f680ac969944a5080ceabbca0ade805