摘要:
Little A is an astronomy lover, and he has found that the sky was so beautiful!So he is counting stars now!There are n stars in the sk... 阅读全文
摘要:
方法:暴力复杂度:O(msqrt(m))步骤:按点的度数分成两类,分别暴力①统计每个点的度数②入度sqrt(m)的分为第二类③对于第一类,暴力每个点,然后暴力这个点的任意两条边,再判断这两条边的另一个端点是否连接因为m条边最多每条边遍历一次,然后暴力的点的入度 map... 阅读全文
摘要:
无向连通图的DFS树中有两类节点可以成为割点:对根节点u,若其有两棵或两棵以上的子树,则该根结点u为割点;对非叶子节点u(非根节点),若其子树的节点均没有指向u的祖先节点的回边,说明删除u之后,根结点与u的子树的节点不再连通,则节点u为割点。const int MAX... 阅读全文
摘要:
A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers ... 阅读全文