1138 - Roof

All about problems in Volume 11. 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
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

1138 - Roof

Post 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
Check input and AC output for thousands of problems on uDebug!
Post Reply

Return to “Volume 11 (1100-1199)”