写这个就是为了手写一份好用的求割点模板:
吐槽下,题目中的 Each of the next at most N lines contains the number of a place followed by the numbers of some places to which there is a direct line from this place. 这个at most是不可信的,应该是用大于n行的测试数据,因为这个我WA了。。。
#include <cstdio>
Poj 1144 Zoj 1311 求割点 模板,布布扣,bubuko.com
原文地址:http://blog.csdn.net/u011026968/article/details/37922809