Page 2 of 2

Re: 11153 - Museums

Posted: Wed Jan 23, 2013 4:20 pm
by tzupengwang
Could anyone post some I/O ?
Thanks~ :D

Re: 11153 - Museums

Posted: Mon May 05, 2014 9:35 am
by forthright48
Here is a tricky case:
Input:

Code: Select all

2
1 2 1 1
1 1
0 1 1
1 17 1 1
1 1
0 1 1
Output:

Code: Select all

Case 1: No possible trip.
Case 2: 1