SPOJ FASTFLOW MAXFLOW
Hi,I am trying to solve this problem on Spoj.
I have implemented simple Dinic's algorithm only,but am getting TLE.Here is the solution link solution .Am I doing anything wrong?
Please help!!
Edit:Got AC!!
Codeforces Round 945 Solution Discussion (with myself)
Atcoder ABC #354 Solution Discussion