其实也就模板简单QAQ
(逃
by Kubic @ 2019-02-03 17:21:30
@[code之王](/space/show?uid=93739) 。。。我不知道啊,团队里发个帖吼一声吧
by 断清秋 @ 2019-02-03 17:22:11
@[mc苦力怕](/space/show?uid=93266) 那深搜讲到哪了
by qwertylzx·破祥 @ 2019-02-03 17:22:57
最后一段好像错了
by Kubic @ 2019-02-03 17:23:34
@[code之王](/space/show?uid=93739) 私信吧
by 断清秋 @ 2019-02-03 17:23:35
改成
```cpp
for(int i=1;i<=scc;i++){
if(qlt[i]==0&&ans==0){
ans=hav[i];
}
if(qlt[i]==0&&ans!=0){
cout<<0;
return 0;
}
}
```
试试
by Kubic @ 2019-02-03 17:24:21
@[liuzh](/space/show?uid=124949)
by Kubic @ 2019-02-03 17:24:41
如果有两个出度为0的点才输出0
by Kubic @ 2019-02-03 17:25:25
ans更新过了说明之前已经有出度为0的了,如果这个点再出度为0就输出0
by Kubic @ 2019-02-03 17:27:12
@[liuzh](/space/show?uid=124949)
by Kubic @ 2019-02-03 17:28:54