SPOJ : SELLPHN2 — Getting WA (Dinic's Algorithm)

Правка en1, от elita15, 2016-03-23 22:50:26

http://www.spoj.com/problems/SELLPHN2/

I used Dinic's algorithm to solve this problem yet I am getting WA. Can someone please take a look at my code and tell me why exactly is it failing?

Link to code: https://ideone.com/T6fsQv

Теги dinic, maxflow, algorithms, spoj

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский elita15 2016-03-23 22:51:06 2
en1 Английский elita15 2016-03-23 22:50:26 282 Initial revision (published)