https://www.luogu.org/problem/P2341 缩点之后唯一 一个出度为0的点 #include<cstdio> #include<iostream> using namespace std; #define N 10001 #define M 50001 int front[N],nxt[M],to[M],tot; int dfn[N],low[N],st[N],top,bl[N],siz[N]; bool vis[N]; int out[N]; void…
http://poj.org/problem?id=2186 || https://www.luogu.org/problem/show?pid=2341 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 33470 Accepted: 13634 Description Every cow's dream is to become the most popular cow in the herd. In a herd…