Sichuan University Programming Contest 2021 Preliminary

H: Ӽ׾ħպ