ujzwt4it's blog

By ujzwt4it, history, 8 years ago, In English

I was trying to solve this problem http://codeforces.me/gym/100703/problem/F

In the discussion given, people have discussed about DP and flows solution to the problem. The DP is well understood.

Can someone please explain the flows solution for the problem?

Also, is there a way to ensure exactly k edges are selected in the min-cut of a network?

Thanks in advance.

  • Vote: I like it
  • +4
  • Vote: I do not like it