12873 - The Programmers

All about problems in Volume 128. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
dibery
Learning poster
Posts: 76
Joined: Sat Feb 23, 2013 4:16 pm
Location: Taiwan, Taipei
Contact:

Re: 12873 - The Programmers

Post by dibery » Sun Mar 08, 2015 12:49 pm

A test case
Input:

Code: Select all

1
5 3 2 8
1 2
2 1
3 1
3 2
4 1
4 2
4 3
5 2
Output:

Code: Select all

5
To calculate the flow, please note that the edges are bi-direction.
Life shouldn't be null.

Post Reply

Return to “Volume 128 (12800-12899)”