Multiple input problems
The first line of a multiple input file is an integer N, then
a blank line followed by N input blocks. Each input block is
in the format indicated in the problem description. There is a
blank line between input blocks.
The output format is the same as the input format, without the
integer N (and without the blank line following it, of course), i.e.
The input should be like this:
2 <-- The number of test cases
<-- A blank line
3 <-- First data set
<-- A blank line
3 <-- Second data set.
And the output should be like that:
asdf <-- First output
<-- A blank line
asdf <-- Second output
As an example, for problem number 100 a multiple input/output files could be as follows
Input
3
1 10
100 200
201 210
900 1000
1 10
201 210
900 1000
100 200
201 210
Output
1 10 20
100 200 125
201 210 89
900 1000 174
1 10 20
201 210 89
900 1000 174
100 200 125
201 210 89