后来做到几道性质相似的题目,这里列出来供参考: 垃圾撞题出题人 CF1444C - Codeforces Round #680 - Team-Building (official solution) LOJ508