洛谷通道:https://www.luogu.com.cn/discuss/812746
知乎通道:https://www.zhihu.com/question/654193775
求助!说出一点思路也行。