elita15's blog

By elita15, history, 8 years ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it +6 Vote: I do not like it

Why are you completely ignoring the value of L?