请 rejudge 一下这发提交:https://www.luogu.com.cn/record/182420731
并附上此题参考资料:https://www.cnblogs.com/YunQianQwQ/p/16364951.html
如果还不会&想要做法请私信我。