This problem is used in private contest:shdz
SH模拟赛订正