摘要:
求最大连通块…… #include<bits/stdc++.h> using namespace std; const int maxn=1e7+10; const int maxm=2*1e5+10; int vis[maxn]; int beg[maxn],nex[maxn],to[maxn], 阅读全文
posted @ 2020-03-02 09:35
syzf2222
阅读(108)
评论(0)
推荐(0)
摘要:
计算每个点的入度。 #include<bits/stdc++.h> using namespace std; const int maxn=1e5+10; int vis[maxn],rd[maxn]; int top; int main(){ int x,y; while(1){ scanf("% 阅读全文
posted @ 2020-03-02 09:03
syzf2222
阅读(88)
评论(0)
推荐(0)