摘要: Bear and Big Brother 签到题,直接模拟就可以了。 Bear and Friendship Condition 满足只能是每个朋友圈中每个人和其他人都是朋友,这样的边数的确定的。 然后并查集求每个朋友圈大小再判断是否合法就可以啦。 #include<cstring> #includ 阅读全文
posted @ 2017-04-06 21:43 Macaulish 阅读(214) 评论(0) 推荐(0) 编辑