自己能看明白的题解: 摘自:
https://www.acwing.com/solution/content/15524/
y总的:
https://www.acwing.com/activity/content/code/content/156257/