Page 1 of 1

1138 - Roof

Posted: Thu Aug 28, 2014 1:41 am
by brianfry713
Input consists of several test cases separated by a blank line. The first line of the input indicates the number of test cases, and it's followed by a blank line.
The sample input should be:

Code: Select all

1

6
13 7 15 6
3 8 7 7
1 7 5 6
5 5 9 3
6 3 8 2
9 6 12 8