SPOJ FASTFLOW MAXFLOW

Revision en2, by game_changer007, 2015-12-29 21:44:32

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!!

Tags maxflow, spoj, algorithms, dinic

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English game_changer007 2015-12-29 21:44:32 17 Tiny change: 'ase help!!' -> 'ase help!!\n\nEdit:Got AC!!'
en1 English game_changer007 2015-12-27 23:32:41 287 Initial revision (published)