题解:https://www.luogu.com.cn/blog/Lqs314/solution-cf319d
记录:https://codeforces.com/contest/319/submission/210020510
过都过不了,直接 T 飞。
怎么会有这么离谱的题解啊/jy/jy