10%的数据中,n ≤ 1000, K = 1; 30%的数据中,K = 1; 80%的数据中,每个村庄相邻的村庄数不超过 25; 90%的数据中,每个村庄相邻的村庄数不超过 150; 100%的数据中,3 ≤ n ≤ 100,000, 1 ≤ K ≤ 2。
BZOJ1912[APIO2010]patrol巡逻
原文:http://www.cnblogs.com/GhostReach/p/6293713.html