膜拜HZWER大牛的编码能力!附上他的代码(我的代码不知为何一直莫名出错……)#include#include#includeusing namespace std;int tot,n,m,d,father[400001],head[400001],q[400001],ans[400001],cnt... Read More
posted @ 2014-06-02 09:33 ZYF-ZYF Views(184) Comments(0) Diggs(0) Edit
求出强联通分量之后判断出度为0的点有几个,有1个就输出这个分量的点的数目,否则输出0;var i,j,n,m,x,y,ans1,ans2,t,cnt,top:longint; head,next,go,sta,inp:array[0..50010] of longint; low,dfn... Read More
posted @ 2014-06-02 07:51 ZYF-ZYF Views(168) Comments(0) Diggs(0) Edit