Dinic TLE求助(悬赏关注)

P3376 【模板】网络最大流

把 ```if(!out)dep[x]=0;``` 改成 ```if(out == in)dep[x]=0;``` 关我大号就行(
by LCATreap @ 2022-05-21 12:40:54


至于为什么 ```tot=0``` 会炸是因为反向边对应不上,```tot=1``` 没问题。
by LCATreap @ 2022-05-21 12:43:31


|